Metadata-Version: 2.4
Name: stepup-notebook
Version: 4.3.0a0
Summary: StepUp extension for Jupyter notebooks
Author-email: Toon Verstraelen <toon.verstraelen@ugent.be>
License-Expression: LGPL-3.0-or-later
Project-URL: Documentation, https://reproducible-reporting.github.io/stepup-notebook/
Project-URL: Issues, https://github.com/reproducible-reporting/stepup-notebook/issues
Project-URL: Source, https://github.com/reproducible-reporting/stepup-notebook/
Project-URL: Changelog, https://reproducible-reporting.github.io/stepup-notebook/changelog/
Keywords: build automation,build tool,cross-platform,extension,Jupyter notebook,open science,Python,reproducibility,reproducible reporting,reproducible research,research software,StepUp,StepUp Core,workflow automation
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Framework :: Jupyter
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Science/Research
Classifier: Natural Language :: English
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Education :: Computer Aided Instruction (CAI)
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: stepup<5.0.0a1,>=4.3.0a1
Provides-Extra: jupyter
Requires-Dist: ipykernel>=6.20.1; extra == "jupyter"
Requires-Dist: ipython>=8.0; extra == "jupyter"
Requires-Dist: jupyter-client>=8.0.3; extra == "jupyter"
Requires-Dist: nbclient>=0.10; extra == "jupyter"
Requires-Dist: nbconvert>=7.17.1; extra == "jupyter"
Requires-Dist: nbformat>=5.9.2; extra == "jupyter"
Requires-Dist: pyzmq>=25.0; extra == "jupyter"
Requires-Dist: traitlets>=5.14.0; extra == "jupyter"
Provides-Extra: tests
Requires-Dist: stepup-notebook[jupyter]; extra == "tests"
Requires-Dist: matplotlib>=3.8.0; extra == "tests"
Requires-Dist: pillow>=10.0.0; extra == "tests"
Requires-Dist: pytest>=8.2.0; extra == "tests"
Requires-Dist: pytest-asyncio>=0.24; extra == "tests"
Requires-Dist: pytest-timeout>=2.3.1; extra == "tests"
Requires-Dist: pytest-xdist>=3.6.1; extra == "tests"
Provides-Extra: dev
Requires-Dist: stepup-notebook[tests]; extra == "dev"
Requires-Dist: mkdocstrings-python; extra == "dev"
Requires-Dist: psutil; extra == "dev"
Requires-Dist: reuse; extra == "dev"
Requires-Dist: snipwise<2.0a0; extra == "dev"
Requires-Dist: zensical; extra == "dev"
Dynamic: license-file

<!--
SPDX-FileCopyrightText: 2026 Toon Verstraelen <Toon.Verstraelen@UGent.be>
SPDX-License-Identifier: LGPL-3.0-or-later
-->

# StepUp Notebook

[![release](https://github.com/reproducible-reporting/stepup-notebook/actions/workflows/release.yaml/badge.svg?branch=main)](https://github.com/reproducible-reporting/stepup-notebook/actions/workflows/release.yaml)
[![pytest](https://github.com/reproducible-reporting/stepup-notebook/actions/workflows/pytest.yaml/badge.svg?branch=main)](https://github.com/reproducible-reporting/stepup-notebook/actions/workflows/pytest.yaml)
[![docs](https://github.com/reproducible-reporting/stepup-notebook/actions/workflows/docs.yaml/badge.svg?branch=main)](https://github.com/reproducible-reporting/stepup-notebook/actions/workflows/docs.yaml)
[![PyPI Version](https://img.shields.io/pypi/v/stepup-notebook)](https://pypi.org/project/stepup-notebook/)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/stepup-notebook)
![LGPL-3 License](https://img.shields.io/badge/License-LGPL_v3-blue.svg)
[![CodeFactor](https://www.codefactor.io/repository/github/reproducible-reporting/stepup-notebook/badge)](https://www.codefactor.io/repository/github/reproducible-reporting/stepup-notebook)

<!-- snipwise.md BEGIN abstract -->
StepUp Notebook runs Jupyter notebooks as build steps in
[StepUp Core](https://reproducible-reporting.github.io/stepup-core/),
a universal dynamic build tool.
Notebooks can be executed with parameters and converted to HTML.
A notebook can also declare its own inputs and outputs,
so that StepUp reruns it only when its dependencies have changed.
StepUp Notebook is part of [Reproducible Reporting](https://github.com/reproducible-reporting).
<!-- snipwise.md END abstract -->

> **Note:** StepUp Notebook is in early development, and its API may still change.
> For production use,
> stay with [StepUp RepRep 4.2](https://reproducible-reporting.github.io/stepup-reprep/)
> until StepUp Notebook 4.3 is released.

StepUp Notebook contains the Jupyter features of StepUp RepRep 4.2, under new names:

- `convert_jupyter()` in `stepup.notebook.api` executes a notebook
  and converts it to HTML or another format, optionally with parameters.
  Inputs and outputs can be declared in `plan.py` with `inp=` and `out=`,
  or inside the notebook with `amend()` of StepUp Core.
- `sn-convert-jupyter` is the command that `convert_jupyter()` runs.
- `STEPUP_NOTEBOOK_CELL_TIMEOUT` sets the default timeout of a cell, in seconds.
  Cells tagged `stepup-no-timeout` never time out.

A minimal `plan.py` looks like this:

```python
#!/usr/bin/env python3
from stepup.core.api import static
from stepup.notebook.api import convert_jupyter

static("analysis.ipynb")
convert_jupyter("analysis.ipynb")
```

The source code is hosted on [GitHub](https://github.com/reproducible-reporting/stepup-notebook).

For more information, consult the [documentation](https://reproducible-reporting.github.io/stepup-notebook/).
