I have a Streamlit app that has 3 DataFrame
s initialized the global environment.
I have 3 Thread
s corresponding to each DataFrame
, their job is to get some data via TCP/IP and add it to the DataFrame
.
After the update of the DataFrame
, I use 3 tabs to show each one using st.DataFrame
.
This works flawlessly, but now I need to be able to actually keep the data even if the user refreshes the page.
according to this post, it is not safe to call anything related to Streamlit’s API inside those threads, so st.session_state
and st.cache_data
are not an option.
Iv’e tried extra-streamlit-components
cookie mechanism but it doesn’t support DataFrame
s.
Is there a reliable way to do it?