blackary / st_pages

An experimental version of Streamlit Multi-Page Apps
MIT License
467 stars 77 forks source link

How do I pass variables from one page to another? #83

Closed dm-2111 closed 10 months ago

blackary commented 10 months ago

This is more of a general streamlit question, not specific to st_pages, so you'll probably find better support on https://discuss.streamlit.io, like here: https://discuss.streamlit.io/t/pass-variable-from-one-page-to-another-after-introduction-of-multi-page-apps/31482

The short answer is, you use st.session_state to pass variables between pages