Using st.experimental_connection, how should I share the connection across multiple pages?
I am thinking that the best option is to store the connection in the session_state. Is this ill-advised? Is there another alternative?
Using st.experimental_connection, how should I share the connection across multiple pages?
I am thinking that the best option is to store the connection in the session_state. Is this ill-advised? Is there another alternative?
You can explore the use of st.cache_data() together with st.experimental_connection(). More details are provided in the Docs page:
Hope this helps!
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.