jupyter的局域网登陆

一、生成config文件。  

在linux终端输入;

jupyter notebook --generate-config

成功的结果返回:

Writing default config to: /home/用户名/.jupyter/jupyter_notebook_config.py

二、生成密码

jupyter notebook password

成功的结果返回:

Wrote hashed password to /home/用户名/.jupyter/jupyter_notebook_config.json

三、修改生成的配置文件

sudo nano /home/用户名/.jupyter/jupyter_notebook_config.py

再后面加入

c.NotebookApp.ip='0.0.0.0' 
c.NotebookApp.password = u'你的密码' 

c.NotebookApp.open_browser = False 

c.NotebookApp.port =8888 

四,重新启动jupyter

访问http://你的电脑ip:8888/tree

就会发现,在同个局域网下的计算机都可以访问到了

猜你喜欢

转载自blog.csdn.net/Chen_RuiMin/article/details/86260923
今日推荐