Giter Site home page Giter Site logo

Comments (4)

Asaurus1 avatar Asaurus1 commented on June 2, 2024 1

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.

Asaurus1 avatar Asaurus1 commented on June 2, 2024 1

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.

github-actions avatar github-actions commented on June 2, 2024

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.

Visits

from streamlit.

raethlein avatar raethlein commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.