LoginSignup
0
2

More than 5 years have passed since last update.

windows10でJupyter Notebookの初期フォルダの変更がうまくいかない時

Posted at

1 設定ファイルを作成

コマンドプロンプトなどで、

jupyter notebook --generate-config

を実行する。
すると
(windowsの場合)
c:\Users\(UserName)\.jupyter

jupyter_notebook_config.py
というファイルができる。
これを開いて編集する。

2 jupyter_notebook_config.pyを編集

#c.NotebookApp.notebook_dir = ''

を検索などして、
文頭の「#」を取り(コメントアウトになっているため)
「''」の中に初期フォルダを記入
たとえば

c.NotebookApp.notebook_dir = 'c:\workspace'

3(これでうまくいかないとき)プロパティを編集

jupyter notebookへのショートカットを右クリックして
「ファイルの場所を開く」。
アイコンを右クリックして、プロパティを開く。
「リンク先」の中に
「%USERPPROFILE%」という記述があるとうまくいかないので、
この部分を削除する。

0
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
0
2