Hey guys I am having trouble seeing any of the code I produced in VS code onto my streamlit local host, its just a blank page. I have saved everything, check the path, closed out and opened new terminal/window/vs code but nothing seems to work. Is it because I don’t have a main function or what else could it be. Worked all night to write the code and sucks that I can’t see if I did it right. I am running python 3.8.8, VS code and I don’t know if it matters but I have had trouble downloading software and applications on my 2021 MacBook Pro with the M1 chip.
Hi @joel.alba75, welcome to the Streamlit community!
No, a main function is not required.
The first thing I would do is comment out your entire file, and just put back two lines:
import streamlit as st "Hello, World!"
If you hit save, then run
streamlit run app.py, do you get a result?
- Are you connected to the internet?
- If so, does anything show up in the Developer Tools console in the browser?
Try pasting the URL of your localhost into a Chrome tab. For me it solved the problem