- Setup AMI Box for Ubuntu 16.04
- ssh into remote box
- Install Streamlit on remote AWS server
pip install streamlit
- Find AWS external IP
curl http://checkip.amazonaws.com
- Edit ~/.streamlit/config.yaml (on remote box)
nano ~/.streamlit/config.yaml
# add these lines
proxy:
isRemote: true
waitForConnectionSecs: 60
externalIP: EXTERNAL_IP
- Run help report
streamlit help
-
Click on URL (or copy and paste to open browser in local box)
-
Install Atom Remote: http://streamlit.io/docs/remote-operation/ on your local box & start server
Atom and Sublime Text If you use Atom, you need to install Remote Atom and then run the Remote Atom Server:
Atom → Preferences → Install → “remote-atom” → Install
Packages → Remote Atom → Start Server
- Install rmate on remote box
sudo curl -o /usr/local/bin/rmate https://raw.githubusercontent.com/aurora/rmate/master/rmate
sudo chmod +x /usr/local/bin/rmate
- From remote box, start editing by using rmate:
rmate my_script.py
... file opens local on Atom