'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> | <u>newly generated</u> </p> """ + html_perspective # Cluster analysis if show_clusters: cluster_labels = Inspector.cluster_labels(data=df_results, span=3, t=step_clustering) #df_results['cluster']=df_results.agent.apply(lambda i: cluster_labels[i]) else: cluster_labels = [] # MAIN PAGE st.subheader('Opinion trajectories of all agents') fig = Inspector.detailed_plots( config=configrun, data=df_results, highlight_agents=[agent_focus], highlight_range=[step_focus - 1, step_focus + 1], clusters=cluster_labels,