respysive-slide
Interactive HTML presentations written in Python. Slides take text, Markdown, LaTeX, images, Plotly, Altair and Matplotlib charts, and maps, laid out on a Bootstrap grid. A deck is a single HTML file that opens in any browser, and it exports to PDF and to PowerPoint with editable text and charts.
See the showcase deck, made with this script · Documentation · Gallery · Changelog
Installation
pip install respysive-slide
PDF and PowerPoint exports render the slides with headless Chromium:
pip install "respysive-slide[pptx]"
python -m playwright install chromium
respysive-slide requires Python 3.10 or later.
Example
import plotly.express as px
from respysive import Presentation, Slide
df = px.data.gapminder().query("year == 2007")
fig = px.scatter(df, x="gdpPercap", y="lifeExp", size="pop", color="continent",
hover_name="country", log_x=True, size_max=45)
title = Slide(center=True)
title.add_title_page({"title": "World health", "subtitle": "Gapminder data, 2007"})
chart = Slide()
chart.add_title("Life expectancy and income")
chart.add_content([fig, "Each bubble is a country, sized by its population."], columns=[8, 4])
chart.add_notes("Start with the cluster of African countries on the left.")
deck = Presentation()
deck.add_slide([title, chart])
deck.save_html("world_health.html", theme="sober")
deck.save_pdf("world_health.pdf", theme="sober")
deck.save_pptx("world_health.pptx", theme="sober")
Open world_health.html in a browser: the arrow keys move between slides and S
opens the speaker view.
Features
- Content:
add_contentdetects the type of each item (Markdown, HTML, LaTeX, images, videos, Plotly, Altair, Matplotlib, pandas tables) and places the items side by side. Cards, title pages, and nested layouts withRowandColumn. - Maps: MapLibre web maps (markers, proportional circles, flows, choropleths) without writing JavaScript. Thematic maps drawn in Python with mappyng are also supported; mappyng 2 will be published soon.
- Presenting: fragments, vertical slides, speaker view with notes, overview, touch navigation.
- Fitting: slides have a fixed size, and content taller than the slide is
fitted to it.
check()reports the slides whose text became too small. - Themes:
sober,scienceandcorporate, which also colour the charts. Reveal.js themes and custom CSS work too. - Exports: PDF with vector text and charts, PowerPoint with editable text and native charts for simple Plotly figures, and offline HTML files that embed every library.
Upgrading from version 1
Most scripts run unchanged. The migration guide lists what differs.
License
MIT
Metadata
Release files for respysive-slide 2.0.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 |
|---|---|---|---|---|
| respysive_slide-2.0.0.tar.gz | 103.4 kB | Without provenance | Details for respysive_slide-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| respysive_slide-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for respysive_slide-2.0.0-py3-none-any.whl |
Total release size: 224.9 kB
Release files / respysive_slide-2.0.0.tar.gz
| Download URL | respysive_slide-2.0.0.tar.gz |
|---|---|
| Size | 103.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a548b7bbf0c6479f8d8d4b889415a63f59e43530a7b34e313683f2b9ae07070
|
|
BLAKE2b-256 checksum How to use checksums |
0b9173f078b90e3ba50fa1a9979f4082c1313b84930f63e4b2631da05a90124d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.0
|
Release files / respysive_slide-2.0.0-py3-none-any.whl
| Download URL | respysive_slide-2.0.0-py3-none-any.whl |
|---|---|
| Size | 121.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5730ea9e2ab0d5f37d754ca9a1d4d887e28700639682690adb38e0cab19bf6e
|
|
BLAKE2b-256 checksum How to use checksums |
5928cdd5fe34c7337610959e509a84840d77b5ad2dbe2c52fd293a1a1ee2d561
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.0
|
Security for respysive-slide 2.0.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.