Edit mode and command mode

A Jupyter Notebook can either be in edit mode or command mode. When in edit mode, the contents of a cell can be changed; the cell gets highlighted in green, as shown in the following screenshot: 

                                                                Edit mode of a cell in Jupyter Notebook

You will then notice a pencil icon appear in the top right corner:

Edit mode of a cell in Jupyter Notebooks

Edit mode can be entered by clicking on a cell or by pressing Enter on the keyboard.

The Esc key helps us switch from edit mode to command mode. This can also be done by clicking anywhere outside a cell. A gray boundary around the cell with a blue margin on the left indicates command mode:

Command mode for a cell in Jupyter Notebooks

Command mode allows us to edit the entire notebook, while edit mode serves more like a text editor. The Enter key helps us enter edit mode when we're in command mode. Several keyboard shortcuts are available in edit mode and command mode. Command mode is mapped to a higher number of shortcuts than edit mode:

Keyboard shortcuts in Command mode

Keyboard shortcuts in Command mode 2

Keyboard shortcuts in Edit mode

The keyboard shortcuts in the preceding screenshots help us navigate Jupyter Notebook.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset