Formats of Jupyter Notebook

In this section, we discuss the backbone of issues related to Jupyter Notebook's formats.

For more information associated with the formats for Jupyter Notebook, you will find a useful link here: https://nbformat.readthedocs.io/en/latest/. First, let's look at one of the simplest notebooks, Custom Widget – Spreadsheet.ipynb. It has just five lines, shown here:

{ 
 "cells": [], 
 "metadata": {}, 
 "nbformat": 4, 
 "nbformat_minor": 0 
} 

The whole notebook code is included in a pair of curly brackets. At the highest level, a Jupyter notebook is a dictionary with the following few keys:

  • metadata (dict)
  • nbformat (int)
  • nbformat_minor (int)
  • cells (list)

In the previous example code block, both the cells and metadata are empty. ...

Get Hands-On Data Science with Anaconda 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.