Skip to content

Instantly share code, notes, and snippets.

@kirinsannnnnnnnnn
Created February 16, 2019 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kirinsannnnnnnnnn/916cae89b28dece402d7a5cb91bb0f3a to your computer and use it in GitHub Desktop.
Save kirinsannnnnnnnnn/916cae89b28dece402d7a5cb91bb0f3a to your computer and use it in GitHub Desktop.

前準備

  • cookiecutterのインストール sudo pip install cookiecutter
  • dockerのインストール

手順

  1. cookiecutter-data-scienceでディレクトリテンプレートを生成 cookiecutter https://github.com/drivendata/cookiecutter-data-science
  2. データをdata下に入れる
  3. dockerを実行
docker run \
 --rm \
 -v /Users/kirin/notebook/test_dir:/home/jovyan/ \
 --name notebook \
 -p 8888:8888 \
 -u root \
 jupyter/datascience-notebook \
 start-notebook.sh --NotebookApp.password="sha1:61847f6503af:23c38b01e6cfc5a9afbd345fdbc1ac06551a70cc"
  1. 最後の行のパスワードは空なので、ブラウザでhttp://localhost:8888にアクセスして何も入力せずloginすればOK

参考ページ

感想

  • できてみれば非常に単純で良い
  • 追加でパッケージ等のインストールが必要になればDockerfileを作るか
  • ディレクトリ構成とかテンプレに不満が出てきたら自分でカスタムcokkiecutter作るか
  • その辺は今回のissueのスコープ外で
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment