nbformat
contains the reference implementation of the Jupyter Notebook format,
and Python APIs for working with notebooks.
There is also a JSON schema for notebook format versions >= 3.
From the command line:
pip install nbformat
We use fastjsonschema
by default. To use jsonschema
instead, set the environment variable NBFORMAT_VALIDATOR
to the value jsonschema
.
This library supported Python 2.7 and Python 3.5+ for 4.x.x
releases. With Python 2's end-of-life nbformat 5.x.x
supported Python 3 only. Support for Python 3.x versions will be dropped when they are officially sunset by the python organization.
Read CONTRIBUTING.md for guidelines on how to setup a local development environment and make code changes back to nbformat.