Chapter 3 Jupyter Notebook Overview
3.1 Interface
Jupyter Notebook provides a very simple and user-friendly interface, including Menu bar, Toolbar and Cell. A notebook consists of a sequence of cells. There are three types of cells in Jupyter Notebook.
Raw Cell: Raw cells provide a place where you can write anything that you don’t want to be executed by the notebook.
Markdown Cell: Markdown cells can be executed and provides documentations for your notebook.
- Code cell: A code cell allows you to edit and write new code. When executed, the code is sent to the kernel associated with the notebook. The execution results are returned and displayed in the notebook as the cell’s output.
3.2 Shortcuts
Shift + Enter
run the current cell, select belowCtrl + Enter
run selected cellsAlt + Enter
run the current cell, insert belowCtrl + S
save and checkpoint
command mode (press Esc to activate):
Enter
take you into edit modeH
show all shortcutsUp
select cell aboveDown
select cell belowShift + Up
extend selected cells aboveShift + Down
extend selected cells belowA
insert cell aboveB
insert cell belowX
cut selected cellsC
copy selected cellsV
paste cells belowShift + V
paste cells aboveD
,DD
delete selected cellsZ
undo cell deletionS
Save and CheckpointY
change the cell type to CodeM
change the cell type to MarkdownP
open the command palette.
You can check the keyboard shortcuts by:
Help –> Keyboard Shortcuts