Streamlit is not working

I am new to Streamlit but it is not working .
First
when i write
streamlit hello
it works fine
Second
but when i run
streaamlit run main.py
it just showing blank page and nothing else

i am using venv environment with python3.9.13 using browser microsoft edge Version 105.0.1343.42 (Official build) (64-bit) and using windows 10 using vscode as ide

Please help me



Screenshot 2022-09-24 132305

import streamlit as st 
st.title("---STREAMLIT---")
st.write("Hello")

Iā€™m afraid I cannot replicate your issue. Have you tried:

  • a different browser
  • updating python / streamlit / your browser
  • checking if you are actually coding in the same system which is designated as local to the browser
  • changing the name of the file, main.py might clash with namespaces