1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

JupyterLabがlocalhost:8888だと真っ白のまま起動しないのでconfigの設定を変えた

Posted at

概要

JupyterLabをバージョンアップしたときに発生した出来事です。
locahost:8888では表示されず、127.0.0.1:8888なら表示されるというちょっと何言ってるかわからない状態になってしまったのでいっそのことlocalhost接続ではなく127.0.0.1をデフォルトにしてしまえという話になります。

方法

JupyterLabのconfigに記載します。

まずはconfigを作成する

jupyter-lab --generate-config

すると~/.jupyter/jupyter_lab_config.pyというファイルができるので開いて該当箇所を編集

jupyter_lab_config.py
## The IP address the Jupyter server will listen on.
c.ServerApp.ip = '127.0.0.1'

するとjupyterlabを立ち上げるときにlocalhostではなく127.0.0.1で立ち上がるようになります。
根本的な解決はしていないですが、一旦これで様子見ます。

1
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?