Experimental_connection on multipage

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?

Hi @Gabriel_Rudloff

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!

1 Like

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