Skip to content

Releases

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 22 Aug 11:28
v2.0.0
4e2f0a7

PDF by default, and Jupyter notebooks.

labpress ./labs now writes the file you actually hand in. 1.x built an HTML
page and left the printing to you - --to html gets that back, --to both
gives you the pair.

  • Jupyter notebooks are picked up like any other file. Nothing is executed:
    the notebook already records what each cell printed, so that is what goes on
    the page. Run the cells and save before building, or the record comes out as
    source with no output
  • Code cells render as one block with their output attached underneath, prose
    cells read as prose, and plots come through as images - not as nbconvert's
    In[ ] / Out[ ] rows. nbconvert's remove-cell, hide-input and
    hide-output tags are honoured, so the import cell can stay out of a
    submission
  • The cover date can be set - "date" in the config or --date, and one
    date per week when using --split. It used to be whatever day you built the
    record
  • Page breaks waste less paper. A block refuses to split only when it is
    short enough to fit on a page anyway, and the footer no longer prints on top
    of the last line

Upgrading from 1.x:

You used to run You now run
labpress ./labs labpress ./labs --to html
labpress ./labs --pdf labpress ./labs
both files, side by side labpress ./labs --to both

--pdf still parses so a 1.x command doesn't error out, and --out names the
file without its extension deciding the format any more.

npx labpress ./labs

A PDF needs a Chrome, Chromium, Brave or Edge you already have. Without one,
labpress says so, tells you where the HTML is, and exits 6.

Package: https://www.npmjs.com/package/labpress

Full Changelog: v1.0.0...v2.0.0

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 19 Aug 02:32
v1.0.0

First release.

labpress turns a folder of lab programs into a print-ready record: source with
proper syntax highlighting, the inputs you specify, and the output captured by
actually running each program.

  • C, C++, Python and Java
  • Interactive programs get their input typed in as they prompt, so the
    transcript reads like a real terminal session
  • Cover page, linked contents, page breaks that land between programs
  • --pdf prints through the Chrome you already have
  • --split gives one document per subfolder, e.g. one PDF per week
npx labpress ./labs

Package: https://www.npmjs.com/package/labpress

Full Changelog: https://github.com/PythonicVarun/labpress/commits/v1.0.0