Skip to content

Instantly share code, notes, and snippets.

@ksferguson
Last active September 18, 2018 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ksferguson/c2349d8b5efec497358441c51a5a474a to your computer and use it in GitHub Desktop.
Save ksferguson/c2349d8b5efec497358441c51a5a474a to your computer and use it in GitHub Desktop.
AWS Setup

AWS Setup for Remote Streamlit/Python

  1. Setup AMI Box for Ubuntu 16.04
  2. ssh into remote box
  3. Install Streamlit on remote AWS server
pip install streamlit
  1. Find AWS external IP
curl http://checkip.amazonaws.com
  1. Edit ~/.streamlit/config.yaml (on remote box)
nano ~/.streamlit/config.yaml

# add these lines
proxy:
    isRemote: true
    waitForConnectionSecs: 60
    externalIP: EXTERNAL_IP
  1. Run help report
streamlit help
  1. Click on URL (or copy and paste to open browser in local box)

  2. 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

  1. 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
  1. From remote box, start editing by using rmate:
rmate my_script.py

... file opens local on Atom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment