Ipython Notebook: Modal Editor
Ipython Notebook: Modal Editor
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
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:
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