Custom working directory Jupyter Notebook

When using Jupyter Notebook learn, discover each time you open the default directory is C drive, but also there are all kinds of files. It makes learning to interact with, it is troublesome. For learners, need only demonstrate learning and Jupyter Notebook about the project can be. According to their own set of requirements, planning documents can be removed from the file directory to find trouble.

Open Anaconda Prompt (Anaconda3)

 

 Enter commands interactively, enter: jupyter notebook --generate-config file to find jupyter_notebook_config.py set the working directory

 

 Open the configuration file, modify the settings and save your work directory: Remember not have Chinese, otherwise inexplicable error occurs

 

 After modifying the shortcut Jupyter Notebook of the "% USERPROFILE% /" delete, click OK

 

 Open JupyterNotebook again, find the directory has been changed to set the working directory. Such file is easy to archive, search.

Guess you like

Origin www.cnblogs.com/no-end-to-learning/p/11788028.html