4
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-Notebookを試す

Posted at

dockerでJupyter-Notebookをサクッと試すメモ

まずはdocker pull

docker search したときにスターが最も多かった「jupyter/datascience-notebook」を使います。

$ docker pull jupyter/datascience-notebook

※6.07GBもあったので時間かかります

コンテナの起動

$ docker run --rm -it -v $(pwd):/w -p 8888:8888 jupyter/datascience-notebook /bin/bash
  • -v $(pwd):/w ローカルのファイルをコンテナ上の/wにマウントする
  • -p 8888:8888 Jupyter-Notebookのデフォルトポートが8888なのでローカルとコンテナのポートを割り当てる

Jupyter-Notebookの起動

$ cd /w
$ jupyter notebook

以下が表示される

    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://(コンテナID or 127.0.0.1):8888/?token=XXXXXXXX

ブラウザから
http://127.0.0.1:8888/?token=XXXXXXXX
に接続すればJupyter-Noteのトップページが表示される
あとは色々試すだけ

4
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
4
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?