Read the directory
- Command mode (Press ESC to start)
- Edit mode (Press Enter to start)
Shortcut key for Jupyter Notebook
Installation before use:
PIP install Jupyter (if you have Python installed and added Python to the environment interpreter)
If you want to open the ipynb-ending file, go to the CMD console and use CD to switch to the ipynb-ending file directory.
Jupyter Notebook has two keyboard input modes. Edit mode, which allows you to type code or text into cells; The unit frame line is green. Command mode, keyboard input running program commands; The unit frame line is gray.
Command mode (Press Esc to open)
- Enter: Enters the editing mode
- Shift-enter: Runs this cell and selects the next cell
- Ctrl-enter: Runs this unit
- Alt-enter: Runs this cell and inserts a new cell under it
- Y: The unit goes into code state
- M: The unit enters the Markdown state
- R: The unit enters the RAW state
- 1: Set level 1 headings
- 2: Set level 2 headings
- 3: Set level 3 headings
- 4: Set level 4 headings
- 5: Set level 5 headings
- 6: Set level 6 headings
- Up: Select the upper unit
- K: Select the upper unit
- Down: Select the unit below
- J: Select the unit below
- Shift-k: Expand the selected unit
- Shift-j: Enlarge the lower cell
- A: Insert A new cell at the top
- B: Insert a new unit below
- X: Cut the selected cell
- C: Copies the selected unit
- Shift-v: Paste to the top cell
- V: Paste into the unit below
- Z: Restores the last deleted cell
- D,D: Deletes the selected unit
- Shift-m: Merges selected cells
- Ctrl-s: Save the file
- S: Save the file
- L: Convert the line number
- O: Converts the output
- Shift-o: Converts output scroll
- Esc: Close the page
- Q: Close the page
- H: Display shortcut key help
- I,I: interrupts the Notebook kernel
- 0,0: restarts the Notebook kernel
- Shift: ignore
- Shift-space: Scroll up
- Space: Scroll down
Edit mode (Enter)
- Tab: code completion or indentation
- Shift – Tab: prompt
- Ctrl -] : indentation
- Ctrl-[: Unindent
- Ctrl – A: future generations
- Ctrl Z: recovery
- Ctrl – Shift – Z: do it again
- Ctrl – Y: do it again
- Ctrl-home: Jumps to the beginning of a cell
- Ctrl-up: Jumps to the beginning of a cell
- Ctrl-end: Jumps to the End of the cell
- Ctrl-down: Jumps to the end of the cell
- Ctrl-left: Jump to the Left prefix
- Ctrl-right: Jump to a word on the Right
- Ctrl-backspace: Delete the previous word
- Ctrl-delete: Deletes the next word
- Esc: Enters the command mode
- Ctrl-m: Enters the command mode
- Shift-enter: Runs this cell and selects the next cell
- Ctrl-enter: Runs this unit
- Alt-enter: Run this unit and insert a unit below
- Ctrl-shift — : Splits the cell
- Ctrl-shift-subtract: Splits units
- Ctrl-s: Save the file
- Shift: ignore
- Up: Moves the cursor Up or to the previous cell
- Down: Moves the cursor Down or to the next cell
Reprinted from jupyter Notebook common shortcut keys