The elements of a Jupyter Notebook#

Jupyter Notebooks are made up of cells, which contain either content or code.

Content cells are written in Markdown, which is a markup language for formatting content.

Code cells, in turn, contain code, which in our case is written in Python 3.

print("This is a code cell.")
This is a code cell.

The code cells, such as the one above, are typically run one by one, while documenting and describing the process using the content cells.

You can also run all cells in a notebook by choosing Run All in the Cell menu on top of the Jupyter Notebook. Press H on your keyboard for a list of shortcuts for various commands.

The number in brackets on the left-hand side of a cell indicates the order in which cells have been executed.

In most cases, cells must be run in a sequential order for the program to work.