Diff of /ndv/utils/run_notebook.py [000000] .. [64faee]

Switch to side-by-side view

--- a
+++ b/ndv/utils/run_notebook.py
@@ -0,0 +1,10 @@
+#!/usr/bin/env python
+
+import nbformat, fire
+from nbconvert.preprocessors import ExecutePreprocessor
+
+def run_notebook(path):
+    nb = nbformat.read(open(path), as_version=nbformat.NO_CONVERT)
+    ExecutePreprocessor(timeout=600).preprocessor(nb, {})
+    
+if __name__ == '__main__': fire.Fire(run_notebook)
\ No newline at end of file