Skip to content

Tools for working with notebooks

David Ketcheson edited this page Apr 23, 2017 · 3 revisions

This is mainly intended as a reference for the authors. These are tools we've found useful for dealing with authoring and heavily revising Jupyter notebooks.

  • nbopen: open notebooks from the command line without launching a new notebook server. We find it useful to launch a single server in your home directory; then nbopen will use that to open each notebook.
  • nbdime: diff/merge for notebooks; includes terminal or graphical output.
  • nbstripout: remove output from notebooks before committing them.

To enable git diffing with nbdime:

nbdime config-git --enable --global

To activate nbstripout as a pre-commit hook in a given repository:

nbstripout --install