Not keeping the graphs

Hi streamlit users,

I am running an experiment and I would like to display my results at every step, but I would like it to replace the last ones. To be more precise, I would like the graphs to update but not to display 100 graphs for 100 steps.

Is there a way to do that ?

Thanks in advance :slight_smile:

1 Like

Hi @Kalmouk

I see 3 methods for you to explore

  1. Using add_rows
  2. Using st.empty
  3. Generating all the data and then using plotly animations to play or scroll through the data.

I believe option 2 is the right for you for now. But 3 could be awesome to explore.

Marc