jupyter notebook modify the default folder [directory location]

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

  1. First, open cmd input jupyter notebook --generate-config
  2. The system feedback path to the default folder, find the file based on feedback: jupyter_notebook_config.py 
  3. Modify the last line as follows
  4. 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
  5. Save after closing.
  6. Jupyter notebook to find a shortcut, right-click on Properties;
  7. In the target, the delete the last% USERPROFILE%.
  8. Open jupyter notebook
  9. It's done.

Guess you like

Origin www.cnblogs.com/yfb-press/p/FYB_PRESS.html