Jkozma/streamlit-practice

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

1 Like