Jupyter Notebook Quick Guide
Published in
2 min readApr 13, 2021
Jupyter notebook is considered as the main environment for writing python code. Advantage of notebook is, it has both markdown cell and code cell which makes the code more readable and understandable.
There are two modes -
- Command mode — Color of cell will be blue
- Edit mode — Color of the cell would be green
Command mode short cuts
Esc
: Go into command modeShift + Space
: Scroll notebook upwardsSpace
: Scroll notebook downwardsShift + Up/Down
: To select multiple cellsD + D
: To delete cellB
: To insert a new cell belowA
: To insert a new cell aboveM
: To convert a cell to a markdown cellY
: To convert a cell back to a code cellF
: To find and replace on your codeZ
: Undo the last operationEnter
: To go back to edit mode
Edit mode shortcuts
Shift + M
: To merge selected cellsShift + Enter
: To execute the code in the current cell and go to the next cellShift + Tab
: To get a brief documentation of the object that you have just typed in the coding cellCtrl + Shift + -
: To split the cell at the cursorAlt + Enter
: To execute the code in the current cell and insert new cell below
Using Markdown cell effectively:
<font color = blue, yellow...> String </font>
to give font any color.$
on both the sides of the text to write LaTeX equations- A single dash, i.e.
-
followed by two spaces to make bullet points - A number and a dot followed by a space, i.e.
1.
to make numbered lists >
to indent the text>>
for further indenting it, and so on<br>
Break line- A back single quotation mark
`
on both sides to get monospace fonts __string__
or**string**
for bold text_string_
or*string*
for italic text#
for the titles##
for the main headings###
for the subheadings####
for the smaller subheadings#####
for the italic subheadings