From 1db3c02060c2905136487ac45548e7caff2ee38c Mon Sep 17 00:00:00 2001 From: Volker Stampa Date: Mon, 30 Oct 2023 17:31:12 +0100 Subject: [PATCH] Run up-to 10 nb in parallel --- scripts/notebook_runner.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/notebook_runner.sh b/scripts/notebook_runner.sh index 2d4f3ec2b..b39328a52 100755 --- a/scripts/notebook_runner.sh +++ b/scripts/notebook_runner.sh @@ -3,5 +3,5 @@ [ -f .env ] && source .env # Find all .ipynb files in the directory and pass them to xargs for parallel execution rm --force --recursive src/examples/*.nbconvert.ipynb src/examples/.ipynb_checkpoints -find src/examples/ -name "*.ipynb" | xargs -I {} --max-procs 1 bash -c "AA_TOKEN=\"$AA_TOKEN\" poetry run jupyter nbconvert --to notebook --execute {}" +find src/examples/ -name "*.ipynb" | xargs -I {} --max-procs 10 bash -c "AA_TOKEN=\"$AA_TOKEN\" poetry run jupyter nbconvert --to notebook --execute {}" rm --force src/examples/*.nbconvert.ipynb