Skip to content

Instantly share code, notes, and snippets.

View ociule's full-sized avatar

ociule

View GitHub Profile
@ociule
ociule / ipnbdoctest.py
Last active July 12, 2018 10:06 — forked from minrk/ipnbdoctest.py
simple example script for running and testing notebooks.
#!/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.
Tested with python 3.6 and jupyter 5.0
"""
# License: MIT, but credit is nice (Min RK, ociule).