Jupyter Notebook Quick Guide

Madhudeepa Jois
D to E Data Science
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 mode
  • Shift + Space: Scroll notebook upwards
  • Space: Scroll notebook downwards
  • Shift + Up/Down: To select multiple cells
  • D + D: To delete cell
  • B: To insert a new cell below
  • A: To insert a new cell above
  • M: To convert a cell to a markdown cell
  • Y: To convert a cell back to a code cell
  • F: To find and replace on your code
  • Z: Undo the last operation
  • Enter: To go back to edit mode

Edit mode shortcuts

  • Shift + M: To merge selected cells
  • Shift + Enter: To execute the code in the current cell and go to the next cell
  • Shift + Tab: To get a brief documentation of the object that you have just typed in the coding cell
  • Ctrl + Shift + -: To split the cell at the cursor
  • Alt + 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

--

--