Hi,
I am new to Streamlit and just trying things around, right now, it is multi pages. For some reason, when I add my main page which in this case is app.py
to the st.navigation, I get a recursive call on that first page, see sc.
here is my code:
import streamlit as st
home_page = st.Page("app.py", title="Home", icon=":material/home:", default=True)
create_page = st.Page("create.py", title="Create entry", icon=":material/add_circle:")
delete_page = st.Page("delete.py", title="Delete entry", icon=":material/delete:")
compare_page = st.Page(
"compare.py", title="Compare finance", icon=":material/difference:"
)
pg = st.navigation([home_page, compare_page, create_page, delete_page], position="top")
pg.run()
Also, another question. Is it possible to not have the first page from st.navi selected and loaded? because if I have this
create_page = st.Page("create.py", title="Create entry", icon=":material/add_circle:")
delete_page = st.Page("delete.py", title="Delete entry", icon=":material/delete:")
compare_page = st.Page(
"compare.py", title="Compare finance", icon=":material/difference:"
)
pg = st.navigation([ compare_page, create_page, delete_page], position="top")
pg.run()
and run streamlit run app.py
I will have the page from app.py and compare.py loaded and intertwined .
Thank you in advance for your help!