'update'
[talweg.git] / reports / run.sh
old mode 100644 (file)
new mode 100755 (executable)
index a6b31ce..4c6a00e
@@ -1,3 +1,12 @@
 #!/bin/sh
+# Usage: ./run.sh file[no_suffix] P H
 
-jupyter-nbconvert --ExecutePreprocessor.timeout=1800 --to notebook --execute report_2017-03-01.ipynb
+./ipynb_generator.py $1.gj - P=$2 H=$3
+
+# Timeout for 1 cell : 24*3600s = 24h
+jupyter-nbconvert \
+       --ExecutePreprocessor.kernel_name='ir' \
+       --ExecutePreprocessor.timeout=86400 \
+       --execute $1.ipynb \
+       --to notebook --output $1.out.ipynb
+#      --to html --output=$1.html