From 6aa57e695e4fdddc5a811bb1c8e787aacb80912b 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..c1b44fb 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; \ + timeout 600 papermill --start-timeout 1 --cwd notebooks notebooks/$$file --progress-bar /dev/null; \ + done deps: pre-commit run poetry-lock -a