diff --git a/packages/wf-brainscales2-demos/package.py b/packages/wf-brainscales2-demos/package.py
index 36d5c19f6fb4e4c16074e50f7ec3004c5d5c95e0..69020d3252322c01fad43578fa4c4245f4eb6a9f 100644
--- a/packages/wf-brainscales2-demos/package.py
+++ b/packages/wf-brainscales2-demos/package.py
@@ -4,6 +4,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+from glob import glob
from spack import *
import os
@@ -45,15 +46,16 @@ class WfBrainscales2Demos(Package):
cmd_env()
# execute notebook and save
jupyter = Executable("jupyter")
- jupyter("nbconvert",
- "--ExecutePreprocessor.kernel_name=python3",
- "--execute",
- "--allow-errors",
- "--to",
- "notebook",
- "ts_05-yin_yang.ipynb",
- "--output",
- prefix+"/.spack_test_results/ts_05-yin_yang.ipynb")
+ for fn in glob("ts*.ipynb") + glob("tp*.ipynb"):
+ jupyter("nbconvert",
+ "--ExecutePreprocessor.kernel_name=python3",
+ "--execute",
+ "--allow-errors",
+ "--to",
+ "notebook",
+ fn,
+ "--output",
+ prefix + "/.spack_test_results/" + fn)
def _set_collab_things(self):
# enable "EBRAINS lab" mode