nbd
A lightweight ipython/jupyter notebook diffing tool.
Purpose
This tool makes ipython/jupyter notebook diffs more readable.
This tool is meant for text-based diffing from the command-line.
Overview
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[1]: and Out[1]: lines of the notebook.
The output of ndb is git-diff output and can be piped to other commands like less(1) and tee(1).
Requirements
Python >= 2.6
nbconvert
pandoc
git
Install
Install with pip (or your favorite python package manager):
pip install nbd
Usage
Help:
nbd -h
Simple usage:
nbd <notebook>
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
Source distribution:
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.
Tutorial
See the tutorial in the demo/ directory: demo tutorial.
Metadata
Release files for nbd 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nbd-0.2.tar.gz | 10.8 kB | Without provenance | Details for nbd-0.2.tar.gz |
Release files / nbd-0.2.tar.gz
| Download URL | nbd-0.2.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dfdcdeb8923a3375339d68a4fa6ad379872fb90318a4ee0ed1052424fbf31071
|
|
BLAKE2b-256 checksum How to use checksums |
2989cd611596d3efaa69a41f29ebcfb0e06187f4267549a0bca1275fa211d113
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for nbd 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.