This is an Atom package that sets up Streamlit integration, so you can run Streamlit scripts and see reports in a side pane right next to the file you're editing. This way you don't have to constantly shuffle between Atom, the terminal, a web browser :D
When editing a local Python script that uses Streamlit, just press
Local profile, and watch the magic happen.
What this does:
From now on, you can just edit your script in Atom normally, and every time
you save the file the Streamlit report will automatically update. No
need to press
NOTE: If you use Anaconda or Pyenv, you may need to update the Streamlit Atom
ctrl-alt-r to work for you. See the Settings section
When editing a remote Python script that uses Streamlit, you first need to go through a few extra steps as a one-time setup:
First of all, we assume you already have remote editing set up in Atom. Personally, I find SHFS to be the best way to do this:
# On Mac OS$ brew cask install osxfuse$ brew install sshfs# On Ubuntu$ sudo apt-get install sshfs
In Atom on your local machine, press
cmd-shift-P on a Mac),
Streamlit Profile Editor.
Select Remote profile in the top selectbox.
Set up the fields Streamlit proxy URL, Remote machine, Remote folder, and Local path where remote folder is mounted. See the on-screen documentation for that.
Open your remote .py file in Atom as you normally would (see SSHFS instructions, for example).
Still in Atom, go back to the remote file you're editing and press
ctrl-alt-r, then choose Remote profile to run your file remotely and
open the Streamlit report in a side pane!
From now on, you can just edit your remote script in Atom normally, and every time you save the file the Streamlit report will automatically update.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.