Can I use Streamlit within a PyCharm development environment?

I have successfully run Streamlit from the shell, eg:

streamlit run mypythonscript.py

Here Streamlit is the host application, getting the output from calls within the python script, eg:

streamlit.dataframe()

My question: Is it possible to run Streamlit where my python script is the host?

Specifically, I would like to use Streamlit to allow me to browse through a dataframe that I have created within my python code. In essence similar to what one can do with matplotlib to plot data from within python.

Thx.

Hi @miglto, welcome to the Streamlit community!

Yes, you can run Streamlit from PyCharm in the same way you can run it from VSCode, Spyder, etc. In PyCharm, there is a terminal where you can run streamlit run app.py, and you can keep app.py open in PyCharm as a Python script. Every time you hit save on the script, the Streamlit app will change to reflect the results.

Thx.