Skip to content

Instantly share code, notes, and snippets.

@lukauskas
lukauskas / ipnbdoctest.py
Last active February 23, 2016 01:26 — forked from shoyer/ipnbdoctest.py
#!/usr/bin/env python
"""
simple example script for running and testing notebooks.
Forked from shoyer / ipnbdoctest.py (https://gist.github.com/shoyer/7497853),
who has forked from the original author minrk/ipnbdoctest.py (https://gist.github.com/minrk/2620735)
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.