Lightweight ipython/jupyter notebook diffing tool
A lightweight ipython/jupyter notebook diffing tool.
This tool makes ipython/jupyter notebook diffs more readable.
This tool is meant for text-based diffing from the command-line.
Running ndb shows differences in the following types of data:
- Python code
- reStructuredText code
- Resource files (e.g. PNGs)
This will show you most of what has changed in the In: and Out: lines of the notebook.
- Python >= 2.6
Install with pip (or your favorite python package manager):
pip install nbd
Pipe to less(1):
nbd <notebook> | less
Options (see help for all):
nbd -e python <notebook> nbd <notebook1> <notebook2> <notebook3> nbd <notebook> --git-diff-option="--name-only"
Build and install from sources
python setup.py sdist
After building, install with pip:
pip install dist/nbd-$version.tar.gz
Install in a virtual environment to avoid system pip issues.
See the tutorial in the demo/ directory: demo tutorial.