[Python] when i try to run my app on streamlit through vscode

Discussão em 'Python' iniciado por Stack, Junho 25, 2025.

  1. Stack

    Stack Membro Participativo

    I recently installed Visual Studio Code (VS Code) and set up Streamlit. When I run my app with: streamlit run app.py The terminal says everything runs fine, and the browser opens at localhost:8501, but the webpage stays completely blank — no content or errors appear. Here’s what I’ve tried so far:

    1. Reinstalled Streamlit (pip uninstall streamlit → pip install streamlit).
    2. Cleared Streamlit cache (streamlit cache clear).
    3. Verified no errors show in the terminal or browser console.
    4. Tried running a basic script like: import streamlit as st st.title(“Hello, Streamlit!”) st.write(“If you can see this, Streamlit works :tada:”) Still, nothing appears in the browser.
    5. Opened in different browsers (Chrome, Edge, Incognito mode).
    6. Checked Streamlit’s config (streamlit config show) — the server is running on localhost:8501 without issues.
    7. Ensured the Python extension in VS Code is installed and working.
    8. And everything is working Fine in Pycharm I completely uninstalled and reinstalled VS Code and Streamlit — but the problem persists.

    System info:

    • Windows 10/11 (mention your OS version)
    • Python version (python --version)
    • Streamlit version (streamlit --version)
    • VS Code version

    Does anyone have a fix or has faced this before? Would appreciate any help!

    Continue reading...

Compartilhe esta Página