Skip to content

Instantly share code, notes, and snippets.

@j-min
Last active November 8, 2016 08:34
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 j-min/4f08a69895f3162e0c9800384b3b1de4 to your computer and use it in GitHub Desktop.
Save j-min/4f08a69895f3162e0c9800384b3b1de4 to your computer and use it in GitHub Desktop.
Jupyter Notebook setup on AWS EC2
sudo apt-get upgrade
sudo apt-get update
sudo pip install jupyter notebook
jupyter notebook --generate-config
ipython
from notebook.auth import passwd
passwd()
pwd: ex.jupyter
pwd: ex.jupyter
sha1:.....가 나오면 복사해두고 아래에 붙여넣기
vi ~/.jupyter/jupyter_notebook_config.py
c = get_config()
c.NotebookApp.ip = '*'
c.NotebookApp.password = u'위의 sha1:...'
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8888
AWS-Security Group에서 새로운 security group지정
SSH Anywhere
HTTP Anywhere
HTTPS Anywhere력
custom TCP 8888 지정
브라우저에서 public ip:8888로 접속
위의 pwd 입력
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment