Comments (4)
I suspect this will go away if you add a if "my_val" in st.session_state
guard to your subpage, but agree that doesn't explain why you would get an issue only in your terminal.
from streamlit.
I'm not able to reproduce this error with the latest version of streamlit. I am able to produce key errors if I refresh and go directly to the "mypage.py" page (e.g. start a session on that page) which makes sense, since my_val doesn't exist yet. But those key errors also show up in the app.
from streamlit.
If this issue affects you, please react with a 👍 (thumbs up emoji) to the initial post.
Your feedback helps us prioritize which bugs to investigate and address first.
from streamlit.
Thanks @Asaurus1 for responding to this! I agree with your assessment that in general if "my_val" in st.session_state
should guard against this behavior. Indeed, if you start the app and go directly to /mypage
, I get a key error, which is expected as explained above. As I am also not able to reproduce any other behavior, I am going to close the issue. @luxiaolei feel free to re-open the issue if you have more details on how this can be reproduced or feel the original issue was misunderstood 🙂
from streamlit.
Related Issues (20)
- Be able to close cached resources (@st.cache_resource) HOT 1
- st.tabs cause blank page starting >1.26.0 HOT 3
- st.button - add delay to `help` tooltip HOT 1
- `st.code` ignores language argument if set to 'diff' HOT 2
- Commas can't be removed from numbers in `st.dataframe` HOT 1
- https://ssg-sea.streamlit.app/ does not extract any skills. HOT 3
- Unify dropdown styles for `st.selectbox`, `st.multiselect`, and `st.date_input` HOT 1
- `st.time_input` has different height than other elements HOT 2
- Set sidebar min-width to prevent `st.logo` from hiding the X to close it HOT 1
- mypy strict: error: Module "streamlit" does not explicitly export attribute "experimental_dialog" [attr-defined] (among others) HOT 2
- Custom 404 / Error Page / Maintenance Page that is displayed whenever a bug is pushed or the app encounters and issue on boot HOT 1
- Update error message to show dataframes and charts (when used as widgets) can't be assigned values through Session State HOT 1
- st.selectbox could be typed so that it always returns T unless the index is None (etc) HOT 3
- Button Clicks Ignored (WHEN TEXTAREA HAS FOCUS) HOT 9
- Incomplete shortcodes disappear HOT 9
- Update to support protocol buffer above version 5.0 HOT 3
- button should be able to contain image HOT 2
- doesnt work HOT 2
- Streamlit unnecessarily runs the file watcher against every path in imported modules, even when watching is disabled HOT 5
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.