jupyter notebook change the default location

Multi-picture warning! ! ! !

First install anaconda. It will not be explained here. During the installation process, I chose Firefox to download it. The speed is faster. The download speed with Google is really slow. This varies from person to person, so choose by yourself.
After the installation is complete, run jupyter notebook to automatically pop up the following interface. Insert picture description here
The goal is to have it open the specified file location. Let's start:
First, enter cmd in win+R to open the terminal, enter to jupyter notebook --generate-configInsert picture description here
generate a similar configuration file, and find the file in the terminal prompt. 用文本编辑器打开:ctrl+F打开搜索栏搜索: #c.NotebookApp.notebook_dir ='', When searching, you must first click on the content of the file, and search again when the cursor is blinking, otherwise you will be prompted to find it. Delete #, then ''write the location you want to open in it 注意是\\,两个, a folder has been created here, save and exit. Insert picture description here
After the configuration is complete, find the shortcut of jupyter notebook on the desktop 右键打开点击属性
Insert picture description here
, click OK after the change is completed, and then restart jupyter notebook to open this location successfully, as shown belowInsert picture description here

Guess you like

Origin blog.csdn.net/weixin_43716048/article/details/104758882