> ~/.jupyter/jupyter_notebook_config.py3.设置访问IPecho "_jupyter noteboo">
当前位置:   article > 正文

配置jupyter notebook在局域网中访问_jupyter notebook局域网访问

jupyter notebook局域网访问

1.生产配置文件

jupyter notebook --generate-config
  • 1

2.生产密码

jupyter notebook password
  • 1

显示:Enter password: **** Verify password: ****
将生成的密钥拷贝配置文件

echo "c.NotebookApp.password = 'sha1:***************'" >> ~/.jupyter/jupyter_notebook_config.py
  • 1

3.设置访问IP

echo "c.NotebookApp.ip = '0.0.0.0'" >> ~/.jupyter/jupyter_notebook_config.py
  • 1

4.其他设置

也可以直接编辑~/.jupyter/jupyter_notebook_config.py
在末尾添加

c.NotebookApp.open_browser = False #启动时不自动打开浏览器
c.NotebookApp.port =8888 #指定访问时使用端口
  • 1
  • 2
声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号