1
2

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 5 years have passed since last update.

Docker で Jupyter Lab を使う

Posted at

docker-stacksstart-notebook.sh では環境変数 JUPYTER_ENABLE_LAB がサポートされていますので、コンテナ起動時に環境変数を渡してあげることで jupyter notebook ではなく jupyter lab コマンドが実行されます。

$ docker run -d -p 8888:8888 -e JUPYTER_ENABLE_LAB=true jupyter/base-notebook

認証用のトークンはコンテナで jupyter notebook list コマンドを実行すると確認できます。
hub コマンドではなく notebook コマンドで確認するのがややこしいですが、コンテナを介してアクセスする分には大きな問題でもないでしょう。

参考:

1
2
2

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?