欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Ubuntu下远程访问Jupyter Notebook 配置

程序员文章站 2022-05-29 07:53:46
...

Ubuntu下远程访问Jupyter Notebook 配置

参考链接

在windows上完全参考上面配置方式可用.
但是Ubuntu18.04下会报错:

Traceback (most recent call last):
  File "/home/arron/miniconda3/envs/machine/lib/python3.6/site-packages/notebook/notebookapp.py", line 864, in _default_allow_remote
    addr = ipaddress.ip_address(self.ip)
  File "/home/arron/miniconda3/envs/machine/lib/python3.6/ipaddress.py", line 54, in ip_address
    address)
ValueError: '' does not appear to be an IPv4 or IPv6 address

解决办法修改ip监听地址

## notebook服务会监听的IP地址.
c.NotebookApp.ip="0.0.0.0"