LoginSignup
0
0

More than 3 years have passed since last update.

JupyterLabの初期ディレクトリを外付けHDDにマウントしたGoogleDriveにする

Last updated at Posted at 2020-08-11

JupyterLabを開くと左側のツリーにはCドライブのuser下が表示される。
自分は他のドライブ(D:)の下に作ったGoogle Drive「バックアップと同期」(※Google drive file streamではない)のフォルダを作業に使うので、初期で表示されるツリーをそこにしたい。

JupyterLabの初期ディレクトリを変更する

次の記事を参考にした。
上のリンク先の記事はJupyter notebookのものだが、これをJupyterLabとして使用した。
まずAnaconda promptを起動して,

jupyter lab --generate-config

とすると、C:\Users\username\.jupyter\jupyter_notebook_config.pyってのができた。
これの266行目に

## The directory to use for notebooks and kernels.
#c.NotebookApp.notebook_dir = ''

というのがあったので、

## The directory to use for notebooks and kernels.
c.NotebookApp.notebook_dir = 'D:\GoogleDrive'

としたらうまくいった。
jupyter notebookとほぼ一緒。

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