LoginSignup
13
23

More than 5 years have passed since last update.

Jupyterでよく使う設定とか

Last updated at Posted at 2017-07-17

はじめに

Anaconda3をインストール後にJupyterの設定をいじったのでメモ

環境

  • Windows 7 SP1
  • Anaconda3 4.4.0 Windows(Jupyter Notebook 5)

インストール

Anaconda3のインストール

  • ここからAnaconda3をダウンロードする
  • 任意の場所にインストールする

Jupyterの設定

設定ファイルを作成する

AnacondaPrompt
jupyter notebook --generate-config

この時点でWindowsのユーザフォルダ直下に「.jupyter」というフォルダが作られる
このフォルダ内にjupyter_notebook_config.pyができます
(例:AdministratorであればC:\Users\Administrator.jupyterなど)

作業フォルダを設定する

jupyter_notebook_config.py
c.NotebookApp.notebook_dir=<作業フォルダ>

外側からみれるようにする

jupyter_notebook_config.py
c.NotebookApp.ip='*'

パスワードを設定する

AnacondaPrompt
jupyter notebook password

テーマを変更する(jupyter-themes)

jupyter-themesを参考にインストールする

AnacondaPrompt
pip install lesscpy
pip install jupyterthemes
  • テーマを調べる
AnacondaPrompt
jt -l
  • テーマを選ぶ(chesterishを選んだ場合)
AnacondaPrompt
jt -t chesterish
  • ヘルプ表示
AnacondaPrompt
jt -h

nbextensionsをインストールする

jupyterの拡張機能としてnbextensionsをインストールする

AnacondaPrompt
conda install -y -c conda-forge jupyter_contrib_nbextensions
13
23
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
13
23