Skip to content

Commit

Permalink
Dashboard: render submit script
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsvu committed Feb 3, 2025
1 parent 9dcbefa commit 2f32593
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tools/Status/Dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def _render_page(job):
st.markdown(readme_file.read_text())

# Organize into tabs
status_tab, input_file_tab, outfile_tab = st.tabs(
["Status", Path(job["InputFile"]).name, "spectre.out"]
status_tab, input_file_tab, submit_script_tab, outfile_tab = st.tabs(
["Status", Path(job["InputFile"]).name, "Submit.sh", "spectre.out"]
)

# Print input file
Expand All @@ -100,6 +100,14 @@ def _render_page(job):
line_numbers=True,
)

# Print submit script
with submit_script_tab:
st.code(
(run_dir / "Submit.sh").read_text(),
language="bash",
line_numbers=True,
)

# Print outfile
with outfile_tab:
outfile = run_dir / "spectre.out"
Expand Down

0 comments on commit 2f32593

Please sign in to comment.