#!/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