Skip to content

Instantly share code, notes, and snippets.

View akimd's full-sized avatar

Akim Demaille akimd

  • Faveod
  • Paris, France
View GitHub Profile
@akimd
akimd / ipynbdoctest,py
Created October 27, 2014 08:19
Same as https://gist.github.com/minrk/2620735, but with a context diff display of mismatches
#!/usr/bin/env python
"""
simple example script for running and testing notebooks.
Usage: `ipnbdoctest.py foo.ipynb [bar.ipynb [...]]`
Each cell is submitted to the kernel, and the outputs are compared with those stored in the notebook.
"""
from __future__ import print_function