Skip to main content

lightweight ipython 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.0.1.dev1.tar.gz (6.0 kB view details)

Uploaded Source

File details

Details for the file nbd-0.0.1.dev1.tar.gz.

File metadata

  • Download URL: nbd-0.0.1.dev1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nbd-0.0.1.dev1.tar.gz
Algorithm Hash digest
SHA256 4f71a16a00ce7d8823e894be2b1211ba52f231d29e464d6fae4dc2d6c42872ea
MD5 0243c4c2a2b2325687c659f4d33ecd99
BLAKE2b-256 73d05cb0ae59023d12e2ed3fe461ca6a6961a7947561ca7780aa76b151420488

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