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)
- [Streamlit 1.35.0] Error related to cached st.plotly_chart(plotly.express.line() "Trying to save widget message that wasn't registered. This should not be possible." HOT 2
- "StreamlitAPIException: Selectbox index must be between 0 and length of options" is probably misphrased HOT 5
- Data editor: 'index' column is not greyed out when using `SelectboxColumn` HOT 2
- Support primary theme color for coloring markdown text HOT 1
- plotly_chart updating results flickering since Version 1.35.0 HOT 7
- Support inline material icons in markdown HOT 2
- Add selection support for built-in charts HOT 1
- Support markdown in table cells in `st.table` HOT 1
- Add support for adding an icon to `st.text_input` and `st.number_input` HOT 1
- Support predefined number formats for `column_config.NumberColumn` HOT 2
- a BUG maybe HOT 3
- Support client-side validation via regex pattern for `st.text_input` HOT 3
- Incorrect pasting from Excel range of cells into st.data_editor HOT 1
- Colored background text with line break looks awkward HOT 3
- Anchor does not change on rerun() HOT 5
- Select "Last 7 days" etc on `st.date_input` HOT 1
- Ability to reorder columns in the UI. Datafram and Data Editor. HOT 5
- WebSocket header HTTP_SEC_WEBSOCKET_PROTOCOL value changed to 'streamlit, PLACEHOLDER_AUTH_TOKEN' which gives connection error HOT 4
- Layout Issue on Mobile View HOT 3
- πCannot cache a local custom component widget which loaded successfully from a local vue project node 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.