Skip to main content

Lightweight ipython/jupyter notebook diffing tool

Project description

The lightweight ipython notebook diffing tool

Purpose

To turn ipython/jupyter notebooks into something that can be diffed by a human. No diff or merge GUI, nothing fancy here. This tool just exports data from the notebook to git diff, which can be read by the user, or piped to less(1), or written to a file.

Export data

Running ndb exports the following data from a notebook:

  • Python Format (the Ins)

  • RST Format (the Outs)

  • Resources (e.g. PNGs)

Requirements

  • Python >= 2.6

  • nbconvert

  • pandoc

  • git

Usage

Help:

nbd -h

Example usage:

nbd modified_notebook.ipynb

Works with less(1) for big diffs:

nbd massively_modified_notebook.ipynb | less

Build

Source distribution:

python setup.py sdist

Install

Build first, then install with pip:

pip install dist/nbd-1.0.0.dev1.tar.gz

NOTE: If you have not already pip-installed nbconvert, running the above command will install it for you.

Tutorial

See the tutorial in the demo/ directory: demo tutorial.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nbd-0.1.dev2.tar.gz (6.1 kB view details)

Uploaded Source

File details

Details for the file nbd-0.1.dev2.tar.gz.

File metadata

  • Download URL: nbd-0.1.dev2.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nbd-0.1.dev2.tar.gz
Algorithm Hash digest
SHA256 2465f0bcf985d0968817b695002249a8da24c6f4b584f942a18b8ddb28c4a9ea
MD5 ba85c267703574e366e38c7042bdd5a4
BLAKE2b-256 d59d142abcd08ea5a509a11600ab87c5d3a79776372d1d8af350b30191c6fbde

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page