Changelog¶
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Effort-based Versioning. (Changes to features documented as “experimental” will not increment macro and meso version numbers.)
Unreleased¶
(no changes yet)
4.3.0a0 - 2026-11-25¶
This is the first release of StepUp Notebook. It contains the Jupyter features of StepUp RepRep 4.2, under new names. StepUp RepRep 4.2 remains the version for production use until StepUp Notebook 4.3 is released.
Added¶
convert_jupyter()instepup.notebook.api, which wasconvert_jupyter()instepup.reprep.api.- The command
sn-convert-jupyter, which wassrr-convert-jupyter. - The environment variable
STEPUP_NOTEBOOK_CELL_TIMEOUT, which wasREPREP_JUPYTER_TIMEOUT. StepUp Notebook ignores the old name. STEPUP_NOTEBOOK_CELL_TIMEOUTis registered with StepUp Core, so thatstepup configlists it in a group of StepUp Notebook, instead of as an unrecognized variable without effect, and reports a value that is not a non-negative integer on the line of the variable. This requires StepUp Core 4.3.convert_jupyter()has astep_infoargument, which writes all inputs and outputs of the step to a JSON file, including those amended by the notebook and the local modules it imports.
Changed¶
- The Jupyter dependencies are optional and installed with the
jupyterextra, e.g.pip install 'stepup-notebook[jupyter]'. Without them,sn-convert-jupyterfails with a message naming the extra. - An executed notebook saved by
convert_jupyter()no longer records the execution times of its cells in their metadata, so that executing the same notebook twice gives the same file. convert_jupyter()withparametersno longer fails on a notebook without a cell taggedparameters. The parameters are then inserted at the top of the notebook, and a warning is printed.convert_jupyter()rejectsparameterswhose keys are Python keywords, such asclass, or whose values contain NaN or infinity, whenplan.pyis executed.convert_jupyter()also writes its output when a cell raises an exception or times out, with the outputs up to that cell and the error, and without the outputs of later cells. The step still fails, and StepUp marks the output as outdated.- The local Python modules imported by an executed notebook are inputs of its step, so that the notebook is executed again when one of them changes. Such a module must now be a static file or the output of another step, as for a Python script in StepUp Core.
Fixed¶
convert_jupyter()with output formatpdfno longer fails after LaTeX has made the PDF.convert_jupyter()with output formatmarkdownorlatexwrites the figures and cell attachments to which the output refers, e.g. todemo_md_files/next todemo.md, and declares them as outputs of the step. Before, the output referred to figure files that were never written.convert_jupyter()executes notebooks with the Python interpreter that runs the step, even when an installed Jupyter kernelspec namedpython3points to another interpreter.convert_jupyter()withparametersaccepts the valuesTrue,FalseandNone, also nested in lists and dictionaries. Before, the notebook failed with aNameErrorontrue,falseornull. The injected cell now assigns each parameter on its own line, e.g.dpi = 50.convert_jupyter()with output formatpdforlatexno longer prints the build date below the title, so that converting the same notebook twice gives the same file. A date in the notebook metadata is still shown.
Removed¶
execute_papermill()andsrr-execute-papermillof StepUp RepRep are not carried over. Useconvert_jupyter()with a destination ending in.ipynband theparametersargument. Unlikeexecute_papermill(), it executes a notebook in the directory of the notebook, as in interactive use, so relative paths in a notebook in a subdirectory may need updating. StepUp Notebook no longer depends on papermill.convert_jupyter()no longer supports the output formatsrstandasciidoc, i.e. destinations ending in.rstor.txt.convert_jupyter()has notoargument. The extension ofdestselects the output format, e.g.convert_jupyter("demo.ipynb", "demo.md")instead ofto="markdown".