and then in app.py insert contents from page1 and page2 something like
st.insert('pages/page1.py')
Of course I can import functions to app.py from page1 and page2 and then run them on a line. I can also import the page1, page2 modules and add them to a line.
But I wan’t to be able to use all the magic in page1 and page2 as well. It’s magic like “”“This is Markdown Magic in page1.py”"" I wan’t to work.
Btw, it sounds like you’re making something ambitious! Please do share your experience building a multi-file project in Streamlit with the community. I will be very excited to learn more from your experience.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.