When you open JupyterLab, the tree on the left shows the user under user on C drive. I use the Google Drive "Backup and Sync" (* not Google drive file stream) folder created under another drive (D: ) for work, so I want to make the tree that is displayed initially there.
I referred to Next article. The article linked above is from a Jupyter notebook, but I used it as a Jupyter Lab. First, start the Anaconda prompt,
jupyter lab --generate-config
Then, C: \ Users \ username \ .jupyter \ jupyter_notebook_config.py
was created.
Line 266 of this
## The directory to use for notebooks and kernels.
#c.NotebookApp.notebook_dir = ''
Because there was
## The directory to use for notebooks and kernels.
c.NotebookApp.notebook_dir = 'D:\GoogleDrive'
Then it worked. Almost the same as jupyter notebook.
Recommended Posts