- Create a prelude_cell.py and prelude_notebook.py in a directory.
- Running your notebooks with the prelude runner to execute the prelude code before each notebook / cell.
echo 'import random; random.seed(0)' >./config/prelude_cell.py
echo '' >./config/prelude_notebook.py
prelude-runner --preludes=./config ./notebooks