Memoru

System Engineering and Programming and IT

1903-jupyter-notebook-shortcuts

jupyter notebook Shortcuts

Overview

  • jupyterを使うにあたり、shortcutを整理する。

List

Command Mode

  • H : Help
  • P ; command Pallet
  • M : Markdown
  • Y : code
  • B : insert cell Below
  • D,D : Delete selected cells
  • V : paste cells below
  • S : Save
  • Ctrl-Enter : run selected cells
  • Shift-Enter : run cell, select below
  • Alt-Enter : run cell and insert below

Contents of Table

key value
H show keyboard shortcuts
P open the command palette
-------------- ----------------------------------------------
M change cell to markdown
R change cell to raw
Y change cell to code
-------------- ----------------------------------------------
A insert cell above
B insert cell below
C copy selected cells
D,D delete selected cells
X cut selected cells
V paste cells below
Shift-V paste cells above
Z undo cell deletion
-------------- ----------------------------------------------
S Save and Checkpoint
Ctrl-S Save and Checkpoint
-------------- ----------------------------------------------
Esc close the pager
Q close the pager
Enter enter edit mode
Alt-Enter run cell and insert below
Ctrl-Enter run selected cells
Shift-Enter run cell, select below
-------------- ----------------------------------------------
Up select cell above
Down select cell below
K select cell above
J select cell below
Space scroll notebook down
Shift-Space scroll notebook up
Shift-Up extend selected cells above
Shift-Down extend selected cells below
Shift-J extend selected cells below
Shift-K extend selected cells above
Shift-M merge selected cells, or current cell with
- cell below if only one cell is selected
-------------- ----------------------------------------------
F find and replace
-------------- ----------------------------------------------
L toggle line numbers
Shift-L toggles line numbers in all cells, and
- persist the setting
O toggle output of selected cells
Shift-O toggle output scrolling of selected cells
-------------- ----------------------------------------------
I,I interrupt the kernel
0,0 restart the kernel (with dialog)
-------------- ----------------------------------------------
1 change cell to heading 1
2 change cell to heading 2
3 change cell to heading 3
4 change cell to heading 4
5 change cell to heading 5
6 change cell to heading 6
-------------- ----------------------------------------------
Ctrl-Shift-F open the command palette
Ctrl-Shift-P open the command palette
-------------- ----------------------------------------------

Edit Mode

  • Tab : code completion or indent
  • Shift-Tab : tooltip
  • Ctrl-] : indent
  • Ctrl-[ : dedent
  • Ctrl-/ : comment
  • Ctrl-D : delete whole line

Contents of Table

Key Value
Esc enter command mode
Ctrl-M enter command mode
------------------ ---------------------------
Ctrl-S Save and Checkpoint
Insert toggle overwrite flag
------------------ ---------------------------
Shift-Enter run cell, select below
Ctrl-Enter run selected cells
Alt-Enter run cell and insert below
------------------ ---------------------------
Ctrl-Shift-F open the command palette
Ctrl-Shift-P open the command palette
Ctrl-Shift-Minus split cell at cursor
------------------ ---------------------------
Ctrl-A select all
Ctrl-/ comment
Ctrl-D delete whole line
------------------ ---------------------------
Ctrl-Z undo
Ctrl-Y redo
Ctrl-U undo selection
Alt-U redo selection
------------------ ---------------------------
Tab code completion or indent
Shift-Tab tooltip
------------------ ---------------------------
Ctrl-] indent
Ctrl-[ dedent
Down move cursor down
Up move cursor up
------------------ ---------------------------
Ctrl-Home go to cell start
Ctrl-Up go to cell start
Ctrl-End go to cell end
Ctrl-Down go to cell end
------------------ ---------------------------
Ctrl-Left go one word left
Ctrl-Right go one word right
Ctrl-Backspace delete word before
Ctrl-Delete delete word after

[EOF]