How to set the default folder for Jupyter notebook to: e:\apps\Jupyter

Currently, Jupyter saves my notebooks in the folder: ‘C:\Users\marc’
I want to know how to instruct Jupyter to save my notebooks in the folder: ‘E:\Apps\Jupyter\notebooks’,
and I would like to know where I can find more information about the line ‘c.NotebookApp.notebook_dir’ in my ‘’ file.

Here’s what I did (so that you can tell me what I did wrong): – I created a ‘’ file, following (or attempting to follow) the instructions in:

  1. Several StackOverflow postings and
  2. A tutorial entitled, [Change Jupyter Notebook Startup Folder]

The command, ‘jupyter notebook --generate-config’, created a ‘’ at this path:

I moved the ‘’ to this path (based on my (mis) understanding of the tutorial mentioned above:

I inserted the following line in the ‘’ file:
c.NotebookApp.notebook_dir = r’E:\Apps\Jupyter\notebooks’
and I placed that line mmediately below the following line in the ‘’ file,
# c.NotebookApp.notebook_dir = ‘’

Background info re my environment: I recently installed: ‘conda install anaconda=2021.11’ and I’m running Win 10 pro fully updated.

Any help would be appreciated. If possible, I’d appreciate it if someone could tell me the fix, and where I could learn more about the '#c.NotebookApp.notebook_dir = ’ line.

Try using double quotes for the directory path for the ‘c.NotebookApp.notebook_dir’ setting in your configuration file.

See this post:

You may also need to set the setting ‘c.ServerApp.root_dir’ instead in your configuration file, if you are using a new version of Jupyter greater than version 3.