PresentPy
Create slides from Jupyter Notebooks
PresentPy allows you to take your Jupyter Notebooks and turn them into slides (compatible with PowerPoint, Keynote, LibreOffice...) that then can be integrated into your presentation decks.
Installation
You can install PresentPy directly into your Jupyter Lab installation using pip:
pip install presentpy-jupyter
If you want to use it as a standalone CLI tool, you can install it using pipx (or your favorite package manager) – the package is called presentpy:
pipx install presentpy
Otherwise, you can install it using pip or your favorite package manager – the package is called presentpy.
Usage
To turn a notebook into slides, simply run:
Usage: presentpy [OPTIONS] NOTEBOOK
A CLI tool to convert Jupyter Notebooks to slides.
Options:
--output PATH Directory or file path where the output ODP file will be
saved. Defaults to the current directory.
--theme TEXT Pygments style to be applied to the presentation.Defaults to
'default'. See https://pygments.org/docs/styles/ for
available styles.
--outputs Include code cell outputs in the presentation.
--help Show this message and exit.
Code configuration
You can configure the code cells to be displayed in the slides by adding a comment on the last line of the cell. The comment should start with #% and then you can add the following options:
title: The title of the slidehighlights: A comma separated list of lines to highlight, each highlight could be a number or a range of lines separated by a dash, e.g.1,3-6,6-7
Example
Consider the notebook shown below, when converted to slides using the default theme, it will look like the first image in the table below. When converted using the fruity theme, it will look like the second image.
| Original notebook [view .ipynb] | |
|---|---|
|
|
|
| Default theme [as PDF] [as Google Slides] | Fruity theme [as PDF] [as Google Slides] |
|
|
|
|
|
|
|
|
|
| Slides omitted as the only change is the highlighting of the code. | |
|
|
|
|
|
|
|
|
|
You can then use these slides in your presentation deck.
Metadata
Release files for presentpy 1.4.6
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 |
|---|---|---|---|---|
| presentpy-1.4.6.tar.gz | 35.1 kB | Without provenance | Details for presentpy-1.4.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| presentpy-1.4.6-py3-none-any.whl | Python 3 | none | any | Details for presentpy-1.4.6-py3-none-any.whl |
Total release size: 60.6 kB
Release files / presentpy-1.4.6.tar.gz
| Download URL | presentpy-1.4.6.tar.gz |
|---|---|
| Size | 35.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed2075795fd1ffa185bff9cd4b8814ea6653dd4e837a3609468340f9bba733a2
|
|
BLAKE2b-256 checksum How to use checksums |
5b36eea33ce6cf1dda5b798ac53c2b4d695518e11535d60cdc8fede66b9cad16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.14 Linux/6.5.0-1025-azure
|
Release files / presentpy-1.4.6-py3-none-any.whl
| Download URL | presentpy-1.4.6-py3-none-any.whl |
|---|---|
| Size | 25.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2fa00766dfc910f7c3d01b2dea22e8956fac4964366c3d2a6ab2a0db62c13de9
|
|
BLAKE2b-256 checksum How to use checksums |
ca8cdec246da13587e622fc6fda2468b482f08d1ebe5e220d4f6cd4ee68d415c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.14 Linux/6.5.0-1025-azure
|
Security for presentpy 1.4.6
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.