How to cache plotly plots?

Hi everyone,
I’m building an app in python for parsing logs and presenting multiple plots (using plotly) from the data it gets from there.
After each interaction all the plots are reloaded.
In an attempt to reload only the plots that suppose to change as a result of the interaction, I tried using st.cache but it didn’t work as I planned. The cached plots are not loaded at all after the interaction.

How should I implement it?

1 Like

same issue with me

Hey there!

Same issue here with Plotly figures that cannot be cached. Did you get to find a solution around this?

Thanks a lot!

fig.to_json()
Then save to session with a specific key
When needed use the key get them…
give a try…
Thanks
Sai

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.