You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users should be able to serve multiple demos for a range of applications in their deployment/ db. These demos should not
need to be prespecified at a set path, but should be "installable" in some sense.
Here is an example where we can toggle between multiple views in a single interface:
importstreamlitasst# Function for the first pagedefpage_one():
st.title("Page One")
st.write("Welcome to Page One!")
st.write("Here is some content specific to the first page.")
# Function for the second pagedefpage_two():
st.title("Page Two")
st.write("Welcome to Page Two!")
st.write("Here is some content specific to the second page.")
# Function for the third pagedefpage_three():
st.title("Page Three")
st.write("Welcome to Page Three!")
st.write("Here is some content specific to the third page.")
# Main appdefmain():
st.sidebar.title("Navigation")
page=st.sidebar.selectbox("Choose a page:", ["Page One", "Page Two", "Page Three"])
# Display the selected pageifpage=="Page One":
page_one()
elifpage=="Page Two":
page_two()
elifpage=="Page Three":
page_three()
if__name__=="__main__":
main()
In our implementation, the pages will come from the saved streamlit components/ applications. The functions will be saved as references and/ or artifacts in some way. This will mean that the main function needs to take db as a parameter.
Users should be able to serve multiple demos for a range of applications in their deployment/
db
. These demos should notneed to be prespecified at a set path, but should be "installable" in some sense.
Here is an example where we can toggle between multiple views in a single interface:
In our implementation, the pages will come from the saved streamlit components/ applications. The functions will be saved as references and/ or artifacts in some way. This will mean that the
main
function needs to takedb
as a parameter.Streamlit
component #2407The text was updated successfully, but these errors were encountered: