Create slides from Jupyter Notebooks
Project description
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
I strongly recommend using pipx
to install 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] |
You can then use these slides in your presentation deck.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for presentpy-1.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07d7c2bc14e444cee7f730f40f3d147b64f0927133ea0f777e52aafc04106dfe |
|
MD5 | 0c2bb2436969a354d46d09071249efa1 |
|
BLAKE2b-256 | 58c4a3a514b69da7a36660603f72d6e0680880d2f0b94e564974dba54cbd66b9 |