
前言:
我准备jupyter进行局域网代码调试,但是发现局域网内不能连接上,看别人的文章是需要进行修改配置文件,然后输入密码,我就自己扒拉了一下官网文档,找到了以下方法。
安装:
jupyter note:
pip install jupyter
jupyter lab:
pip install jupyter lab
这俩我更喜欢使用新出的lab ,功能更强大
启动:
以下用lab示例,可替换为notebook ,同样效果
可以 jupyter lab -help 试一下,看到以下介绍,说 -- ip 可以更改listen地址,这个改为服务器ip就行。

所以启动命令:
jupyter lab --ip 192.168.6.62 --no-browser # ip为服务器
启动成功后,在局域网浏览器都可以带开黄色框中的地址

当然也可以,nohup运行,忘记地址的话,使用 jupyter lab list 就可以显示了
jupyter lab list
