My streamlit app starts on the “About” section where details are given about to use the app.
I created another “page” where I want to display figures and plots. Both “pages” can be selected using a simple selectbox.
I would like that when clicking on a specific button, the app switch to the second “page”. Is there any way to do that?
import streamlit as st
page = st.selectbox('Page', ('About', 'Plot'), 0)
if page == 'About':
st.info('test')
button = st.button('button')
if button:
page = 'Plot' # does not work