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 ‘jupyter_notebook_config.py’ file.

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

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

The command, ‘jupyter notebook --generate-config’, created a ‘jupyter_notebook_config.py’ at this path:
‘C:\Users\marc.jupyter\jupyter_notebook_config.py’

I moved the ‘jupyter_notebook_config.py’ to this path (based on my (mis) understanding of the Medium.com tutorial mentioned above:
‘C:\Users\marc\Anaconda3\envs\envname\etc\jupyter\jupyter_notebook_config.py’

I inserted the following line in the ‘jupyter_notebook_config.py’ file:
c.NotebookApp.notebook_dir = r’E:\Apps\Jupyter\notebooks’
and I placed that line mmediately below the following line in the ‘jupyter_notebook_config.py’ 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.