jupyter-print-slides-retro
⚠️ This is a purpose-built, personal tool for one specific environment.
It exists to print RISE slideshows from a legacy classic Jupyter Notebook 6.x environment (
notebook 6.5.x+RISE 5.7, the "rise6" conda environment) and is maintained on a best-effort basis for that environment only. It will not load in JupyterLab or Notebook 7.If you just want PDFs of notebook slides in a modern setup, use
jupyter nbconvert --to slidesplus a reveal.js PDF workflow (or decktape) instead.
What it does
Adds a print button (and File ▸ Print Slides…) to the classic notebook that produces a printable, slide-per-page view of the notebook as a slideshow:
- Cells are grouped into pages using the same slideshow metadata RISE uses:
slideandsubslidestart a new page;fragmentand untagged cells join the current page (fragments fully revealed, as at the end of a slide). - The live, rendered notebook DOM is cloned, so plots, images, MathJax and syntax highlighting appear exactly as on screen.
- Every slide is scaled to fit its page: sparse slides scale up (capped at 3×) so handouts printed 6-per-sheet stay readable, and overfull slides reflow and scale down so nothing runs off the page. The "Maximize content size" toggle (on by default) controls the scaling-up half; scaling down to fit always applies.
- Hide-input/output tags are honoured ("Apply hide-input/output tags"
toggle, on by default): pywrangling's cell tags —
remove_input,remove_output,hide_prompt,side_by_sideand theirslide_*slideshow-only variants — plus the contrib nbextension'shide_input/hide_outputmetadata. Tags are read straight from cell metadata, so this works whether or notapply_cell_tags()ran this session. - A preview opens first, with toggles to include speaker notes (shown in
a labelled notes box on their slide's page) and include skipped cells
(shown with a "skipped" tag). Both are off by default, matching what the
audience sees. All four toggle preferences persist in
localStorage. - Print / Save as PDF opens the browser print dialog scoped to the slide pages — landscape, one slide per page. Choose "Save as PDF" as the printer to get the file. The page box is sized to fit both Letter and A4 landscape, and preview and paper use identical geometry, so what you preview is what prints.
Install
conda activate rise6
pip install jupyter-print-slides-retro
Then restart jupyter notebook. The nbextension registers and enables itself
at install time; there is no separate jupyter nbextension install/enable
step.
To uninstall:
pip uninstall jupyter-print-slides-retro
Requirements
notebook >= 6, < 7(classic Notebook)- A reasonably modern browser; tested with Chrome/Edge. RISE itself is not required at print time — only the slideshow cell metadata is read.
Usage notes
- Run the notebook first: the print view clones what is currently rendered, so un-executed cells print without their outputs.
- In the preview,
Esc(or the Close button) returns to the notebook, andCtrl+Pprints the slides rather than the notebook page. - For 6-slides-per-sheet handouts, print with "Maximize content size" on and pick "6 pages per sheet" in the browser print dialog.
License
BSD-3-Clause.
Metadata
Release files for jupyter-print-slides-retro 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jupyter_print_slides_retro-0.2.0.tar.gz | 13.1 kB | Without provenance | Details for jupyter_print_slides_retro-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jupyter_print_slides_retro-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for jupyter_print_slides_retro-0.2.0-py3-none-any.whl |
Total release size: 32.0 kB
Release files / jupyter_print_slides_retro-0.2.0.tar.gz
| Download URL | jupyter_print_slides_retro-0.2.0.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef5ac78ba783e367f2c9c32dc6cd581e5bc75b3b169e15da5de02ec8bf251f0e
|
|
BLAKE2b-256 checksum How to use checksums |
6e6311d70708eae600c38b0bd6d09209d54aab9b5bd91126f63a1bf1258445f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Release files / jupyter_print_slides_retro-0.2.0-py3-none-any.whl
| Download URL | jupyter_print_slides_retro-0.2.0-py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e69938eb90a2adce299fa04dc790c9c384fabe50ade699da1d1799724fb16044
|
|
BLAKE2b-256 checksum How to use checksums |
1796501c380c8b82c27acce42edcf476e166a954acce5cd84c950eaf7d9bb900
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Security for jupyter-print-slides-retro 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.