Same Code Works in Spyder But Not VSCode

Python is version 3.11 and I did pip install streamlit last week so streamlit version should be the latest. I’m running this script locally on a Windows computer.

I built a dashboard, the code works just fine using Spyder. However when I try with VS Code what happens is after I type (in the python prompt) Streamlit Run EV.py that’s where VS Code it thinks for a few seconds, then returns to prompt. The webpage which opened a new tab will then be stuck on “connecting” and eventually error’ing out.

Anyone able to help with this strange one or have ideas on what to check?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.