配置jupyter notebook在局域网中访问
1.生产配置文件
jupyter notebook --generate-config
2.生产密码
jupyter notebook password
显示:Enter password: **** Verify password: ****
将生成的密钥拷贝配置文件
echo "c.NotebookApp.password = 'sha1:***************'" >> ~/.jupyter/jupyter_notebook_config.py
3.设置访问IP
echo "c.NotebookApp.ip = '0.0.0.0'" >> ~/.jupyter/jupyter_notebook_config.py
4.其他设置
也可以直接编辑~/.jupyter/jupyter_notebook_config.py
在末尾添加
c.NotebookApp.open_browser = False #启动时不自动打开浏览器
c.NotebookApp.port =8888 #指定访问时使用端口
还没有评论,来说两句吧...