SoFunction
Updated on 2024-12-19

How to change the default working directory of jupyter

1. Generate a configuration file: Open Anaconda Prompt and enter the following command

jupyter notebook --generate-config

inquire[y/N] inputy

2, configuration file changes: according to the print path to open the configuration file jupyter_notebook_config.py, full-text search to find thenotebook_dir Location. Fill in the single quotes with the new working path and delete the# If you want to add a letter before the path, you have to add a letter to the path.r . Pictured below:

3, modify the shortcut target properties: right-click the JupyterNotebook shortcut, select [Properties], delete the [%USERPROFILE%] in the [Target] properties, click [Apply] - [OK].

to this article on the jupyter default working directory to change the method of change the article is introduced to this, more related jupyter default directory to change the content of the search for my previous articles or continue to browse the following related articles I hope you will support me in the future more!