Diff of /ipynb/run_notebook.py [000000] .. [98867e]

Switch to side-by-side view

--- a
+++ b/ipynb/run_notebook.py
@@ -0,0 +1,13 @@
+#!/usr/bin/env python
+
+import nbformat,fire
+from nbconvert.preprocessors import ExecutePreprocessor
+
+def run_notebook(path):
+    "Executes notebook `path` and shows any exceptions. Useful for testing"
+    nb = nbformat.read(open(path), as_version=nbformat.NO_CONVERT)
+    ExecutePreprocessor(timeout=600).preprocess(nb, {})
+    print('done')
+
+if __name__ == '__main__': fire.Fire(run_notebook)
+