Skip to content

Commit

Permalink
Merge pull request siliconcompiler#2328 from siliconcompiler/fix-stre…
Browse files Browse the repository at this point in the history
…amlit

fix streamlit for new version
  • Loading branch information
gadfort authored Apr 10, 2024
2 parents 39932f9 + 249abcf commit 1d75193
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion siliconcompiler/report/streamlit_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def _run_streamlit_bootstrap(self):
_config.set_option(config, val)

bootstrap.run(self.__streamlit_file,
'',
False,
[self.__get_config_file()],
flag_options={})

Expand Down
6 changes: 3 additions & 3 deletions siliconcompiler/report/streamlit_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def show_files(chip, step, index):
break
streamlit.session_state['selected'] = [newly_selected]
streamlit.session_state['expanded'] = [*selected["expanded"]]
streamlit.experimental_rerun()
streamlit.rerun()
if streamlit.session_state['selected'] != []:
return True
return False
Expand Down Expand Up @@ -497,7 +497,7 @@ def display_flowgraph_toggle(label_after, vertical_layout_collapsed=False):
fg_toggle = not streamlit.checkbox('Hide flowgraph', help='Click here to hide the flowgraph')
streamlit.session_state['flowgraph'] = fg_toggle
if streamlit.session_state['flowgraph'] != label_after:
streamlit.experimental_rerun()
streamlit.rerun()


def show_flowgraph(chip):
Expand Down Expand Up @@ -600,7 +600,7 @@ def show_title_and_runs(title_col_width=0.7):
previous_job = streamlit.session_state['job']
streamlit.session_state['job'] = job
if previous_job != job:
streamlit.experimental_rerun()
streamlit.rerun()


def show_metric_and_node_selection_for_graph(metrics, nodes, graph_number):
Expand Down

0 comments on commit 1d75193

Please sign in to comment.