Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save u1and0/f50bf1f4c355e4f3803cd5532fa7a8f1 to your computer and use it in GitHub Desktop.

Select an option

Save u1and0/f50bf1f4c355e4f3803cd5532fa7a8f1 to your computer and use it in GitHub Desktop.
pythonコンテナで初回にやる作業_password含むためdotfileにはかいてない

pythonコンテナでやる作業(dotfileには書いてない)

  1. 下記のコマンドによりパスワードを2回入力し、sha1:xxxxxx...の出力を得る
$ docker exec -it composeset_jupyter_1 \
              bash -c ". .bashrc && \
              python -c 'from notebook.auth import passwd; print(passwd())'"
  1. 1をクリップボードにコピー
  2. ~/.jupyter/jupyter_notebook_config.py の
#c.NotebookApp.password = ''

にsha1:付でパスワードから生成されるsha1を貼り付ける。

  1. ~/.jupyter/custom をリネームして読み込ませなければダークテーマで読み込まれない
  2. コンテナリスタート
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment