Skip to content
Advertisement

How to navigate to different directory in Jupyter Lab?

I tried the answers in How to navigate to a different directory in Jupyter Notebook?, but they didn’t work for various reasons:

Some answers are “how to permanently change your Jupyter start-up folder” which I don’t want to do. I already did this, I set my start-up folder and I like it. Sometimes I just need to move around.

I tried changing my directory in Anaconda Prompt and launching lab, but it still takes me to my default start-up folder.

cd/d D:Documentsmy_new_folder
jupyter lab

Confirmed the cd worked.

On Windows. enter image description here

Advertisement

Answer

If you’ve set the default directory in the config file located at C:Users[USER].jupyterjupyter_lab_config.py. You can use the option --notebook-dir="." to start Jupyter lab at the current folder you’re in.

jupyter lab --notebook-dir="."
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement