attempt to fix F_Neighbors2
[talweg.git] / reports / run.sh
old mode 100644 (file)
new mode 100755 (executable)
index a6b31ce..d108199
@@ -1,3 +1,12 @@
 #!/bin/sh
+# Usage: ./run.sh P H
 
-jupyter-nbconvert --ExecutePreprocessor.timeout=1800 --to notebook --execute report_2017-03-01.ipynb
+nbfile=report_P$1_H$2.ipynb
+./ipynb_generator.py report.gj $nbfile P=$1 H=$2
+
+htmlfile=report_P$1_H$2.html
+jupyter-nbconvert \
+       --ExecutePreprocessor.kernel_name='ir' \
+       --ExecutePreprocessor.timeout=1800 \
+       --to html --execute $nbfile \
+       --output=$htmlfile