https://github.com/scverse/prelude-runner
Jupyter notebook runner that executes preludes before each cell
https://github.com/scverse/prelude-runner
Last synced: 11 months ago
JSON representation
Jupyter notebook runner that executes preludes before each cell
- Host: GitHub
- URL: https://github.com/scverse/prelude-runner
- Owner: scverse
- License: apache-2.0
- Created: 2023-11-28T12:01:43.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-09T17:53:22.000Z (12 months ago)
- Last Synced: 2025-06-09T18:44:58.185Z (12 months ago)
- Language: Python
- Size: 84 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
|pypi| |tests|
.. |pypi| image:: https://img.shields.io/pypi/v/prelude-runner
:target: https://pypi.org/project/prelude-runner/
:alt: PyPI Version
.. |tests| image:: https://github.com/scverse/prelude-runner/actions/workflows/test.yml/badge.svg
:target: https://github.com/scverse/prelude-runner/actions/workflows/test.yml
:alt: Unit Tests
prelude-runner
==============
1. Create a `prelude_cell.py` and `prelude_notebook.py` in a directory.
2. Running your notebooks with the prelude runner to execute the prelude code
before each notebook / cell.
.. code:: bash
echo 'import random; random.seed(0)' >./config/prelude_cell.py
echo '' >./config/prelude_notebook.py
prelude-runner --preludes=./config ./notebooks