Turn a folder of lab programs into a print-ready record: syntax-highlighted source, real inputs, real captured output.
Repo PythonicVarun/labpress, read from GitHub 6 h ago. PythonicVarun has not joined Take My Repo.
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.
In[ ] / Out[ ] rows. nbconvert's remove-cell, hide-input andhide-output tags are honoured, so the import cell can stay out of a"date" in the config or --date, and one--split. It used to be whatever day you built theUpgrading 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
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.
--pdf prints through the Chrome you already have--split gives one document per subfolder, e.g. one PDF per weeknpx labpress ./labs
Package: https://www.npmjs.com/package/labpress
Full Changelog: https://github.com/PythonicVarun/labpress/commits/v1.0.0