Comments (3)
Thanks @ivaniliash - would adding a main_module_filename: str = "streamlit_app.py"
as a parameter to the switch_page
function solve your issue?
from streamlit-extras.
@arnaudmiribel I simply replaced line 22 with pages = get_pages(os.path.basename(__main__.__file__))
. Should work if its always the main script we are looking for.
Edit: Probably os.path.basename
is not needed though, but not sure
from streamlit-extras.
Closing this as switch_page
is now a native command in Streamlit!
from streamlit-extras.
Related Issues (20)
- Edit add_logo module with also text for multipages app HOT 2
- ✨ [IDEA] - Stateful chat support for expanders, buttons, etc. HOT 2
- Tags extra - custom color HOT 1
- Styleable Container - custom font HOT 4
- "add_vertical_space" is not accessed HOT 1
- st.experimental_rerun() will e removed soon and is used in stateful_button HOT 1
- New release on PyPI? HOT 6
- style_metric_cards bug on dark mode HOT 2
- 🐛 [when using bottom container the app scrolls automatic to the bottom of the page] - Bottom container scrolling issue HOT 2
- 🐛 [BUG] - add_logo not working with st_pages package HOT 4
- 🐛 [BUG] - bottom() doesn't respect sidebar HOT 3
- 🐛 [BUG] - Row Layout does not work in a container HOT 2
- Add to `conda-forge` HOT 1
- 🐛 [BUG] - Styleable Container does not work in Bottom Container HOT 1
- image_selector, no "key" argument HOT 3
- Website is crashing (just Altex?) HOT 2
- Fix code scanning alert - Incomplete URL substring sanitization
- Support for text color in tags extra component
- 🐛 [BUG] - Metrics display incorrect when windows in dark mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from streamlit-extras.