Skip to content

Commit

Permalink
Merge pull request #104 from hschilling/I43-n2-linkage-dashboard-visi…
Browse files Browse the repository at this point in the history
…bility

Improve the visibility of the N2 and Linkage tabs in the dashboard
  • Loading branch information
jdgratz10 authored Jan 31, 2024
2 parents c86f157 + 229636b commit ec5ddc3
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions aviary/visualization/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@

# Constants - # Can't get using CSS to work with frames and the raw_css for the template so going with
# this for now
iframe_css = (
"width=100% height=4000vh overflow=hidden margin=0px padding=0px border=none"
)
aviary_variables_json_file_name = "aviary_vars.json"
aviary_variables_json_file_name = 'aviary_vars.json'


def _dashboard_setup_parser(parser):
Expand Down Expand Up @@ -111,11 +108,11 @@ def create_report_frame(format, text_filepath):
does not exist.
"""
if os.path.exists(text_filepath):
if format == "html":
if format == 'html':
iframe_css = 'width=1200px height=800px overflow-x="scroll" overflow="scroll" margin=0px padding=0px border=20px frameBorder=20px scrolling="yes"'
report_pane = pn.pane.HTML(
f"<iframe {iframe_css} src=/home/{text_filepath}></iframe>"
)
elif format in ["markdown", "text"]:
f'<iframe {iframe_css} src=/home/{text_filepath}></iframe>')
elif format in ['markdown', 'text']:
with open(text_filepath, "rb") as f:
file_text = f.read()
# need to deal with some encoding errors
Expand Down Expand Up @@ -313,7 +310,6 @@ def dashboard(script_name, problem_recorder, driver_recorder, port):
)

# TODO - use lists and functions to do this with a lot less code

####### Model Tab #######
model_tabs_list = []

Expand Down

0 comments on commit ec5ddc3

Please sign in to comment.