Jupyter Notebook shortcut keys
The Jupyter Notebook has two keyboard input modes. Edit mode, which allows you to type code or text into a cell, where the cell line is green. Command mode, keyboard input run program command; The cell line is gray.
Command mode (press ESC to open)
- Enter: Transfer to edit mode
- Shift-enter: Run this unit and select the next cell
- Ctrl-enter: Running this unit
- Alt-enter: Run this unit and insert a new unit under it
- Y: Unit transfer to code status
- M: Unit transferred to Markdown State
- R: Unit transferred to Raw state
- 1: Set level 1 title
- 2: Set level 2 title
- 3: Set Level 3 title
- 4: Set level 4 title
- 5: Set level 5 title
- 6: Set Level 6 title
- Up: Select the upper unit
- K: Select the upper unit
- Down: SELECT unit below
- J: Select the unit below
- SHIFT-K: Enlarge Select upper Unit
- SHIFT-J: Enlarge Select unit below
- A: Insert the new unit above
- B: Insert the new unit below
- X: Cut the selected cells
- C: Copy the selected cells
- Shift-v: Pasting to the upper unit
- V: Paste into the lower unit
- Z: Restore the Last cell deleted
- D,d: Delete the selected cells
- Shift-m: Merging the selected cells
- Ctrl-s: File Save
- S: File to disk
- L: Convert line number
- O: Conversion output
- Shift-o: Convert Output scrolling
- ESC: Close Page
- Q: Close the page
- H: Display shortcut key Help
- I,i: Interrupt Notebook kernel
- 0,0: Restart notebook kernel
- Shift: Ignore
- Shift-space: Scroll up
- Space: Scroll down
Edit mode (Enter key to start)
- TAB: Code Completion or indentation
- Shift-tab: Tips
- CTRL]: Indent
- ctrl-[: de-indent
- CTRL-A: Select All
- Ctrl-z: Recovery
- Ctrl-shift-z: Do It again
- CTRL-Y: Do It again
- Ctrl-home: Jump to the beginning of the unit
- Ctrl-up: Jump to the beginning of the unit
- Ctrl-end: Jumps to the end of the unit
- Ctrl-down: Jumps to the end of the unit
- Ctrl-left: Jump to the left of a word head
- Ctrl-right: Jump to the right of the first word
- Ctrl-backspace: Delete the previous word
- Ctrl-delete: Delete the following word
- ESC: Enter Command mode
- CTRL-M: Enter Command mode
- Shift-enter: Run this unit and select the next unit
- Ctrl-enter: Running this unit
- Alt-enter: Run this unit, insert a unit below
- ctrl-shift--: Split Unit
- Ctrl-shift-subtract: Split Unit
- Ctrl-s: File Save
- Shift: Ignore
- UP: Move the cursor up or into the previous unit
- Down: Move the cursor down or into the next unit
About Jupyter Notebook quick action