Notebook structure

A Jupyter Notebook is fundamentally a JSON file with a number of annotations. The main parts of the Notebook are as follows:

  • Metadata: A data dictionary of definitions used to set up and display the notebook
  • Notebook format: Version numbers of the software used to create the notebook (the version number is used for backward compatibility)
  • List of cells: There are different types of cell for markdown (display), code (to execute), and output (of the code type cells)

Get Learning Jupyter now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.