sudo pip install jupyter
jupyter notebook
$jupyter notebook --generate-config
In [1]: from notebook.auth import passwd
In [2]: passwd()
Enter password:
Verify password:
Out[2]: 'sha1:******************'
$vim ~/.jupyter/jupyter_notebook_config.py
c.NotebookApp.ip='*'
c.NotebookApp.password = u'sha1:****刚才复制的那个密文'
c.NotebookApp.open_browser = False
c.NotebookApp.port =8888 #随便指定一个端口
jupyter notebook
远程ip:8888
ssh username@address_of_remote -L127.0.0.1:1234:127.0.0.1:8888
使用本地浏览器访问 localhost:1234可以访问notebook了
sudo chmod 777 ~/.local/share/jupyter/
cd ~/.local/share/jupyter/
ls
sudo chmod 777 runtime/
cd runtime/
ls