- You Can any Python IDE from those IDES that you feel comfortable to code with python using it.
- For me I prefer to use Jupyter notebook which is easy and divid the code into cells, so it make my code more understandable, reliable, concise, clean and easy to read.
- Not just that it also has a lighter version to run on local host called Jupyter lab and can be installed using Python pip or pip3 in CMD in Windows & Terminal in Mac OS:
pip install jupyter lab
pip3 install jupyter lab
- You can use any of them on CMD in Windows as Windows doesn't contain python 2 installation.
- But for Terminal in Mac OS you can use only pip3 install jupyter lab, because Mac OS comes ready with python 2 and we want to use python 3 only so we use Python 3 pip3
- You can start Jupyter lab by using CMD in Windows Or Terminal in Mac OS by typing the following command:
jupyter lab
and this will start jupyter lab at your browser.
- Jupyter Notebook Shortcuts:
Ctrl: command key ⌘
Shift: Shift ⇧
Alt: option ⌥
There are 2 modes in the Jypyter Notebook App: command mode and edit mode.
Shortcuts in the both modes:
Shift + Enter run the current cell, select below
Ctrl + Enter run selected cells
Alt + Enter run the current cell, insert below
Ctrl + S save and checkpoint
While in command mode (press Esc to activate):
Enter take you into edit mode
H show all shortcuts
Up select cell above
Down select cell below
Shift + Up extend selected cells above
Shift + Down extend selected cells below
A insert cell above
B insert cell below
X cut selected cells
C copy selected cells
V paste cells below
Shift + V paste cells above
D, D (press the key twice) delete selected cells
Z undo cell deletion
S Save and Checkpoint
Y change the cell type to Code
M change the cell type to Markdown
P open the command palette.
Command Palette
Shift + Space scroll notebook up
Space scroll notebook down
While in edit mode (pressEnter to activate)
Esc take you into command mode
Tab code completion or indent
Shift + Tab tooltip
Ctrl + ] indent
Ctrl + [ dedent
Ctrl + A select all
Ctrl + Z undo
Ctrl + Shift + Z or Ctrl + Y redo
Ctrl + Home go to cell start
Ctrl + End go to cell end
Ctrl + Left go one word left
Ctrl + Right go one word right
Ctrl + Shift + P open the command palette
Down move cursor down
Up move cursor up