From 34859988f0106850fdff082dfc1c056308c5215a Mon Sep 17 00:00:00 2001 From: Panos Mavrogiorgos Date: Thu, 5 Oct 2023 17:51:27 +0300 Subject: [PATCH] notebooks: Switch to papermill for `exec_notebooks` --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9fcce9e..f33dcbd 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,11 @@ clean_notebooks: pre-commit run nbstripout exec_notebooks: - python -m nbconvert --to notebook --execute --stdout notebooks/* >/dev/null + set -e; \ + for file in $$(git -C notebooks ls-files); do \ + echo $$file; \ + papermill --start-timeout 1 --execution-timeout 180 --cwd notebooks notebooks/$$file --progress-bar /dev/null; \ + done deps: pre-commit run poetry-lock -a