LoginSignup
1
2

More than 3 years have passed since last update.

Jupyter Labで外部接続するときのとあるエラー対処

Posted at

概要

いつも通りにjupyter labを外部接続の形で起動しようとする。

$ jupyter lab --ip=* --port=8888 --no-browser

するとエラーが起きる。これの解消方法。

socket.gaierror: [Errno -5] No address associated with hostname

結論

notebookのバージョンを5.6.0に変更すると正常に動く。
参考:Jupyter notebook 5.7.0 と ~/.jupyter/jupyter_notebook_config.py で Jupyter notebook が起動しないバグ

$ pip install notebook==5.6.0

原因

参考の下記エラーと同様の対処で直っているため、jupyter labextensionのインストールの準備の際に$ pip install -U jupyterlabをしていて、一緒にnotebookのバージョンを5.7.0に上げたうっかりが原因とみられる。

socket.gaierror: [Errno -2] Name or service not known
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2