Hello! Newbie here. Nice to meet you all!
As I understand it, streamlit reruns the app every time a user interacts with a widget. The issue I’m having is that my app runs a dataset analysis that can take 10 secs or more before I can display any data.
I need to be able to skip the analysis upon subsequent runs (i.e. only run when data is uploaded the 1st time or user clicks: ‘Analyze’).
Is there a clean way to stop streamlit from re-running certain blocks of code upon every interaction? Can caching help here?
Thank you!