Hello,
look at the question I asked regarding ploting inside a loop and the answer that helped me : Refresh graph/datatable inside loop
The trick is to declare first pl = st.empty() and then have pl.plotly_chart used at the init and/or inside the loop. It won’t “refresh” the graph but draw a new one with all the values.
Hope it can help.
Vinivici