I loaded a short program on github. It works when I run it from IDLE, but nothing is displayed when I open it from the command line
streamlit run rndPlotExercise.py
and open http://localhost:8501
in Google chrome
I loaded a short program on github. It works when I run it from IDLE, but nothing is displayed when I open it from the command line
streamlit run rndPlotExercise.py
and open http://localhost:8501
in Google chrome
Hi @jkozma, welcome to the Streamlit community.
Your app example doesn’t import Streamlit into the program, and doesn’t have any Streamlit function calls. To get your plot to render, you’ll need an st.pyplot(plt)
statement of some kind.
Best,
Randy
Thanks. I made changes per your suggestions, and it seems to be working now. My apologies for not digging a little deeper in the tutorials before posting.
John
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.