Skip to content

Commit

Permalink
notebooks: Switch to papermill for exec_notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pmav99 committed Oct 5, 2023
1 parent ec48499 commit fa2cfab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fa2cfab

Please sign in to comment.