1、首先安装jupyter notebook
pip install jupyter
2、设置远程访问
1)生成sha1的密钥
$ipython
from notebook.auth import passwd
passwd()
设置一个密码,会生成一个sha1的密钥,如下图
2)生成jupyter的config文件
$jupyter notebook --generate-config
这时会生成配置文件,在~/.jupyter/jupyter_notebook_config.py
3)修改配置文件加入如下内容,passward即为上面生成的sha1
c.NotebookApp.ip='*'
c.NotebookApp.password = u'sha1:d182f8ddcb40:ad4058081f0fce4c75c82bb7548cb953c793f1f5'
c.NotebookApp.open_browser = False
c.NotebookApp.port =8003