One step to easily modify the default working directory of Jupyter Notebook

background

After we opened Jupyter, we all found that the displayed directory must have "C/Users/user-xxx" as the root directory. As follows:
Insert picture description here
This annoys us, because we don't want to put our program code and the big data needed by the code on the C drive, so we hope it can be changed.

solution

1. Right-click to view the properties of jupyter.
Insert picture description here
As follows:
Insert picture description here
2. Modify the directory you want to open at the target, as follows:
Insert picture description here

3. Close jupyter, restart it, and it's successful.
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_43391414/article/details/114679646