Skip to content

Instantly share code, notes, and snippets.

View ankostis's full-sized avatar
🦉
On paternity leave

Kostis Anagnostopoulos ankostis

🦉
On paternity leave
View GitHub Profile
@ankostis
ankostis / ipnbdoctest.py
Last active April 14, 2016 18:08 — forked from minrk/ipnbdoctest.py
simple example script for running and testing notebooks in py3
"""
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.
- Found in this SO: http://stackoverflow.com/a/20483736/548792
- Copied from https://gist.github.com/fdeheeger/e79fac57e80f8aaa63cc
- Attempt to make it run under py3.4+.