【转】远程访问jupyter notebook

1. 生成配置文件

$jupyter notebook --generate-config

2. 生成密码

打开python,创建密码

>>> from notebook.auth import passwd
>>> passwd()
Enter password: 
Verify password: 
'sha1:xxx...'

3. 修改默认配置文件

$vim ~/.jupyter/jupyter_notebook_config.py 
修改下面几行

c.NotebookApp.allow_remote_access = True
c.NotebookApp.ip = '*' c.NotebookApp.password = u'sha:xxx...' c.NotebookApp.open_browser = False c.NotebookApp.port = 8888 #随便指定一个端口

4. 启动jupyter notebook

$jupyter notebook

 

本文转自https://www.cnblogs.com/yangxiaolan/p/5778305.html,有修改。

 

posted @ 2020-05-29 13:18  gooneybird  阅读(147)  评论(0)    收藏  举报