【转】远程访问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,有修改。

浙公网安备 33010602011771号