0% found this document useful (0 votes)
170 views

Ipython Notebook: Modal Editor

The document discusses the modal interface of Jupyter notebooks. It describes the two modes - edit mode and command mode. Edit mode allows typing in cells while command mode enables navigation and cell operations using keyboard shortcuts. It provides examples of keyboard shortcuts for basic tasks like navigation, saving notebooks, and editing cells. Styling text with bold, italics and strikethrough is also demonstrated.

Uploaded by

Amreen Khan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
170 views

Ipython Notebook: Modal Editor

The document discusses the modal interface of Jupyter notebooks. It describes the two modes - edit mode and command mode. Edit mode allows typing in cells while command mode enables navigation and cell operations using keyboard shortcuts. It provides examples of keyboard shortcuts for basic tasks like navigation, saving notebooks, and editing cells. Styling text with bold, italics and strikethrough is also demonstrated.

Uploaded by

Amreen Khan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

1.

You can start the notebook server from the command line
ipython notebook

2. To shutdown, delete, duplicate, or rename a notebook check the checkbox next to it and an array of
controls will appear at the top of the notebook list (as seen below). You can also use the same operations
on directories and files when applicable.

To see all of your running notebooks along with their directories, click on the "Running" tab:

Modal editor
Starting with IPython 2.0, the IPython Notebook has a modal user interface. This means that the
keyboard does different things depending on which mode the Notebook is in. There are two
modes: edit mode and command mode.

Edit mode

Edit mode is indicated by a green cell border and a prompt showing in the editor area:
When a cell is in edit mode, you can type into the cell, like a normal text editor.

Enter edit mode by pressing `Enter` or using the mouse to click on a cell's editor area.

Command mode

Command mode is indicated by a grey cell border:

When you are in command mode, you are able to edit the notebook as a whole, but not type into
individual cells. Most importantly, in command mode, the keyboard is mapped to a set of
shortcuts that let you perform notebook and cell actions efficiently. For example, if you are in
command mode and you press c, you will copy the current cell - no modifier is needed.

Mouse navigation
All navigation and actions in the Notebook are available using the mouse through the menubar
and toolbar, which are both above the main Notebook area:

The first idea of mouse based navigation is that cells can be selected by clicking on them.

Keyboard Navigation
The modal user interface of the IPython Notebook has been optimized for efficient keyboard
usage. This is made possible by having two different sets of keyboard shortcuts: one set that is
active in edit mode and another in command mode.
We recommend learning the command mode shortcuts in the following rough order:

1. Basic navigation: enter, shift-enter, up/k, down/j


2. Saving the notebook: s
3. Cell types: y, m, 1-6, t
4. Cell creation: a, b
5. Cell editing: x, c, v, d, z, shift+=
6. Kernel operations: i, .

You can indicate emphasis with bold, italic, or strikethrough text.

Keyboard
Style Syntax Example Output
shortcut
** ** or command/control **This is bold text**
Bold This is bold text
__ __ +b
command/control *This text is This text is
Italic * * or _ _ italicized*
+i italicized
~~This was mistaken This was mistaken
Strikethrough ~~ ~~
text~~ text
**This text is This text is
Bold and nested ** ** and _extremely_ extremely
italic _ _ important** important
All bold and *** ***
***All this text is All this text is
italic important*** important

You might also like