首页 > 技术文章 > 配置局域网下的jupyter notebook

StarZhai 2020-11-05 10:30 原文

jupyter notebook 配置成远程(局域网)访问非常方便,

 

step1:生成一个 notebook 配置文件

jupyter notebook --generate-config

 

step2:设置密码

 
$ jupyter notebook password
 
Enter password: ****
 
Verify password: ****

 

step3:修改配置文件 追加到jupyter/jupyter_notebook_config.py文件文件末尾

 
c.NotebookApp.ip = '本机ip' #服务器IP
 
c.NotebookApp.open_browser = False #启动jp时,不启动浏览器
 
c.NotebookApp.port =8888 #访问端口

 

重启JP即可。

局域网浏览器访问:

 

本机ip:8888

 

 

推荐阅读