NBClient, a client library for programmatic notebook execution, is a tool for running Jupyter Notebooks in
different execution contexts. NBClient was spun out of nbconvert's
NBClient lets you execute notebooks.
To demo NBClient interactively, click this Binder badge to start the demo:
In a terminal, run:
python3 -m pip install nbclient
Python Version Support
This library currently supports Python 3.6+ versions. As minor Python versions are officially sunset by the Python org, nbclient will similarly drop support in the future.
This library used to be part of the nbconvert project. NBClient
ExecutePreprocessorinto its own library for easier updating and importing by
downstream libraries and applications.
Relationship to JupyterClient
NBClient and JupyterClient are distinct projects.
jupyter_client is a client library for the jupyter protocol. Specifically,
jupyter_client provides the Python API
for starting, managing and communicating with Jupyter kernels.
While, nbclient allows notebooks to be run in different execution contexts.