STUDY/Linux

[Python] Jupyter 서버 설치

SnoWhite. 2017. 3. 25. 14:12

pip install jupyter


아나콘다 사용 시 자동으로 깔림


참고 사이트 : http://jupyter-notebook.readthedocs.org/en/latest/public_server.html


실행 방법

jupyter notebook


설정 파일 만들기

jupyter notebook --generate-config


IP 설정

# Set options for certfile, ip, password, and toggle off

# browser auto-opening

c.NotebookApp.certfile = u'/absolute/path/to/your/certificate/mycert.pem'

c.NotebookApp.keyfile = u'/absolute/path/to/your/certificate/mykey.key'

# Set ip to '*' to bind on all interfaces (ips) for the public server

c.NotebookApp.ip = '*' # ← 이 부분을 바꿔주면 됨

c.NotebookApp.password = u'sha1:bcd259ccf...<your hashed password here>'

c.NotebookApp.open_browser = False


# It is a good idea to set a known, fixed port for server access

c.NotebookApp.port = 9999


암호 설정

$ jupyter notebook password

Enter password:  ****

Verify password: ****

[NotebookPasswordApp] Wrote hashed password to /Users/you/.jupyter/jupyter_notebook_config.json

SSL 사용

$ jupyter notebook --certfile=mycert.pem --keyfile mykey.key