Member-only story
✍Tips and Tricks in Python

TL;NR:
This is the method I used most:
cd
into the directory or a parent directory (with the intended directory you will work nested in it).Then just run the command jupyter notebook
There are many ways you can change Jupiter notebook startup folder. Here I put a collection of them below for your reference.
1. Change Jupyter Notebook startup folder (Windows)
- Copy the Jupyter Notebook launcher from the menu to the desktop.
- Right click on the new launcher and change the Target field, change %USERPROFILE% to the full path of the folder which will contain all the notebooks.
- Double-click on the Jupyter Notebook desktop launcher (icon shows [IPy]) to start theJupyter Notebook App. The notebook interface will appear in a new browser window or tab. A secondary terminal window (used only for error logging and for shut down) will be also opened.
2. Change Jupyter Notebook startup folder (Mac OS)
To launch Jupyter Notebook App:
- Click on spotlight, type
terminal
to open a terminal window. - Enter the startup folder by typing
cd /some_folder_name
. - Type
jupyter notebook
to launch the Jupyter Notebook App The notebook interface will appear in a new browser window or tab.
3. From Jupyter notebook
jupyter notebook --help-all
could be of help:
--notebook-dir=<Unicode> (NotebookManager.notebook_dir)
Default: u'/Users/me/ipynbs'
The directory to use for notebooks.
For example:
jupyter notebook --notebook-dir=/Users/yourname/folder1/folder2/
You can of course set it in your profiles if needed, you might need to escape backslash in Windows.
Note that this will override whatever path you might have set in a jupyter_notebook_config.py file. (Where you can set a variable c.NotebookApp.notebook_dir
that will be your default startup location.)