Jupyter notebook 远程server打开时遇到 socket.gaierror: [Errno -2] Name or service not known

这个问题主要是由于远程打开的时候,并没有allow_remote_access=True

输入命令

vim ~/.jupyter/jupyter_notebook_config.py

加入c.NotebookApp.allow_remote_access=True  ,如下

## The IP address the notebook server will listen on.
c.NotebookApp.ip = '*'
c.NotebookApp.allow_remote_access=True

猜你喜欢

转载自blog.csdn.net/dongfangxiaozi_/article/details/88816644