Home directory in Jupyter

I recently installed Anaconda on my SP3 ( I am switching to Python as my main scripting language). However, by default setup, Jupyter (the successor of Ipython) always starts in my home directory, which is C:\Users\xxxxx. Here are the steps to change this setting.

1. Go to the Jupyter install directory. In my case, it is “D:\Program Files\Anaconda\Scripts”. From here run (in command windows)

jupyter notebook --generate-config

Now we will have a file called “.jupyter/jupyter_notebook_config.py” in the above home directory.

2. Then go to the home directory, and edit the configuration file we just got. Search for ” # c.NotebookApp.notebook_dir = u” “, and put the desired path here. This will result in something like:

# c.NotebookApp.notebook_dir = u’E:\Research\Ipython’

3. Now restart the Jupyter, and it will show the new home directory.