st.sidebar.subheader('Clustering') show_clusters = st.sidebar.checkbox('Compute clusters') if show_clusters: step_clustering = st.sidebar.slider('Evaluate clustering at time step:', min_value=5, max_value=149, value=149, step=1, key='cluster_step') # Load data configrun = df_filtered.loc[df_filtered['run_id'] == run_id].iloc[0] df_results = Inspector.results_for_run(configrun) # Perspective Table html_perspective = Inspector.get_persp( data=df_results, display_agent=agent_focus, step=step_focus).set_properties(**{ 'font-size': '9pt', 'font-family': 'Calibri', 'width': '200px' }).render() html_perspective = """ <p style='font-size:9pt;font-family:Calibri;'> <span style="color:Orange">newly added</span> | <span style="color:SlateBlue">marked for removal</span> | <b>written by agent</b> |