About jupyter notebook configuration application one

1. Modify the default folder of jupyter

  1. cmd command:
    jupyter notebook --generate-config
    At this time, the jupyter_notebook_config.py file is generated under c: \ users \ username.jupyter.
  2. We opened the jupyter_notebook_config.py file and found it. # c.NotebookApp.notebook_dir = ''. Remove the preceding #. And add the specified directory location:
    c.NotebookApp.notebook_dir = 'D: / workspace / Jupyter'
  3. At this time, the above two steps are OK. You can also use the shortcut of jupyter notebook to design the location.
    Insert picture description here
    Right-click the attribute to modify the target and the starting position.
    Insert picture description here
    2. Update the mirror station
  4. Change
    win + r of Tsinghua mirror station to open the command line, enter cmd, then copy the following paragraph and execute.
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes

The original URL here is here: Click here! Portal. https://mirror.tuna.tsinghua.edu.cn/help/anaconda/
Insert picture description here

  1. The Tsinghua mirror can no longer be used. Use the CUHK mirror:
    first open the anaconda management interface, install this with the
    Insert picture description here
    find channels button, delete the original Tsinghua mirror station, then copy the following paragraph in the CMD, and press the Enter key to get it done .
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/

conda config --set show_channel_urls yes

At this time, open the navigator again, and the mirror station of the University of Science and Technology of China will appear here.
Insert picture description here
3. Shortcut key
A of jupyter : Insert the cell in the previous one. B: Insert in the latter position.
DD: D key twice in succession to delete the current cell.
Z: Undo the deleted cell.
Y will turn the currently active unit into a code unit.
Hold down Shift + up or down arrow to select multiple cells. In multi-select mode, hold down Shift + M to merge your choices.
Press F to bring up the "Find and Replace" menu.
Enter: Enter edit mode.
Ctrl + Home: reach the starting position of the unit.
Ctrl + S: Save the progress.
Ctrl + Enter: Run the entire unit block.
Alt + Enter: Not only will the unit block run, but a new unit will be added below.
Ctrl + Shift + F: Open the command panel.
Shift + Enter: Run the current cell and automatically select the next cell.
There are many shortcut keys, you can click help-keyboard shotcuts in the jupyter interface to view.
Insert picture description here

Published 18 original articles · praised 31 · 50,000+ views

Guess you like

Origin blog.csdn.net/alvinlyb/article/details/103763635