There are two ways I myself used: [windows] only tested
Method 1: Set a variable in one step [directory location]
In the catalog you want to open a position, shift + right mouse button to open the Powershell window, enter jupyter notebook Enter jupyter in the current working directory is a folder, to facilitate it ~
Method 2: Lock directory location
- First, open cmd input jupyter notebook --generate-config
- The system feedback path to the default folder, find the file based on feedback: jupyter_notebook_config.py
- Modify the last line as follows
-
Find the code: # c.NotebookApp.notebook_dir = '' read: c.NotebookApp.notebook_dir = ' E: \\ the Data ' ' E:, \ the Data ' This is my set of folders that you can change your set of documents folder
- Save after closing.
- Jupyter notebook to find a shortcut, right-click on Properties;
- In the target, the delete the last% USERPROFILE%.
- Open jupyter notebook
- It's done.