How to Change Jupyter’s default Directory

By default Jupyter looks for files and folders in pretty much all your c drive. You can change this folder to perhaps some cloud drive or folder so that you can access all your notebooks from anywhere with an internet access. Here’s how to do that on windows 10.

Go to your start menu and run Anaconda Prompt.

Once opened enter “jupyter notebook –generate-config” without the quotes. This will generate a file in your C:\Users\YourName\.jupyter . Open the file in your editor and go to line 202 or find

“#c.NotebookApp.notebook_dir = ‘ ‘ ”

Chnge the path to wherever you want to store the files. e.g “C:\OneDrive\….” and uncomment the file by removing #. Below is how your line should look like.

c.NotebookApp.notebook_dir = ‘D:\yourpath’

Restart Jupyter or Anaconda and now it should start looking for files and folder in your new path which if empty will be empty until you add files.
Hope this helped.
Back to Top