Jupyter Notebook is widely used most popular tool for machine learning and data science development.
Starting with IPython 2.0, the Jupyter Notebook has two modes:
- edit mode
- command mode.
Keyboard will behave differently depending upon which mode you have selected.
Green cell border is an indication of whether edit mode is enabled or not. You can switch from command mode to edit mode by pressing Enter key, turning cell border colour to green. Edit mode allows you to write code like in a normal text editor. You can also enter into edit mode by using mouse click on a cell.
Following table shows some of important shortcuts for edit mode;
|Tab||code completion or indent|
|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|
|Shift-Enter||run cell, select below|
|Alt-Enter||run cell, insert below|
|Ctrl-S||Save and Checkpoint|
|Up||move cursor up or previous cell|
|Down||move cursor down or next cell|
|Ctrl-/||toggle comment on current or selected lines|
Each data scientist must remember above shortcuts or keep a copy of them next to your computer. This will help you to increase your productivity and lower the stress while you are working on problems such as;