jupyter notebook远程服务器设置

2018-08-29  本文已影响13人  赵小闹闹
conda install jupyter

而不是

pip install jupyter
jupyter notebook --generate-config
In [1]: from notebook.auth import passwd
In [2]: passwd()
Enter password:
Verify password:
Out[2]: 'sha1:ce23d945972f:34769685a7ccd3d08c84a18c63968a41f1140274'

把生成的密文‘sha:ce…’复制下来

$vim ~/.jupyter/jupyter_notebook_config.py 

在空白处插入

c.NotebookApp.ip='*'
c.NotebookApp.password = u'sha:ce...刚才复制的那个密文'
c.NotebookApp.open_browser = False
c.NotebookApp.port =8888 #随便指定一个端口
上一篇 下一篇

猜你喜欢

热点阅读