Manage displays of the streamlit's dashboard

Hi,

I have a question.
I have 2 parts in my dashboard. The first takes less than 2 minutes to display.
The second (big data) takes 2 hours.
So when I run my dashboard with the command (streamlit run …) I have to wait 2 hours and I have nothing to show …
It is possible to show the first part which takes 2 minutes during the time when the second part is launching ?
And it is possible to add a button for launching the second part of the dashboard ? Because I don’t want to launch it every time, but just when the user of the dashboard wants
Thanks :slight_smile:

Hey @Nabs33,

Yeah, I think it’s totally possible to do this. Do you have a link to a GitHub repo so I can take a look at your code?

Also, you will probably want to look at @st.cache'ing the big data parts of your dashboard.
https://docs.streamlit.io/en/stable/api.html?highlight=st.cache#streamlit.cache

Happy Streamlit-ing!
Marisa