Without session state functioning?

Hi, pycharm warns me that “Session state does not function when running a script without streamlit run” when i run the project, but i have no plan to use it. Can it be solved?

Hi @xy1204655650

If you want to use Streamlit in your script, you’ll need to make sure that you’re running it using the streamlit run command.

You can do this by running the following command in your terminal or command prompt:

streamlit run my_script.py

Are you attempting to run Streamlit in any other way(s)?

Best wishes,

Got it. Thanks for your reply!