respysive-slide

Interactive presentations written in Python

A tour of world health, 1952-2007

One Python script, one HTML file

  • Text in Markdown or HTML, equations in LaTeX
  • Plotly, Altair, and Matplotlib charts, passed as they are
  • Tables, images, videos, cards, and maps
  • A Bootstrap grid of 12 columns, with nested rows and columns
  • Export to PDF and PowerPoint, or to a file that works offline

Richer countries live longer

Each bubble is a country, sized by its population.

Japan leads with 82.6 years, Swaziland comes last with 39.6.

Hover a bubble to read its values.

Asia gained 24 years of life, and Japan overtook France

2026-11-11T11:23:31.681564 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/

Heart failure deaths range from 25 to 71 per 100,000 across departments

Department Rate
Val-de-Marne 24.9
Paris 26.4
Hauts-de-Seine 27.0
Creuse 71.0
Indre 69.6
Vendée 60.9

Deaths from heart failure, per 100,000 inhabitants, 2020-2022, standardised on the age structure of a reference population:

\[T = \sum_{a} \frac{d_a}{p_a} \, \frac{P_a}{P}\]

with \(d_a\) deaths and \(p_a\) inhabitants in age group \(a\), \(P_a\) and \(P\) the reference population.

World life expectancy rose by 20 years in half a century

+20 years

World life expectancy, from 49 in 1952 to 69 in 2007.

World average, weighted by population

142

Countries followed every five years by Gapminder.

Oceania lives 26 years longer than Africa

80.7
years in Oceania
54.8
years in Africa
25.9
years between them

Heart failure deaths are lowest in the Paris area

Guadeloupe Martinique French Guiana Reunion Mayotte 100 km Source: Sante publique France (ODISSE) Deaths / 100,000 inhabitants 25 42 46 50 53 71 No data

Drawn in Python with mappyng: an SVG that works offline and stays sharp in PDF.

25 per 100,000 in Val-de-Marne, 71 in Creuse, the highest.

Algiers and Tunis lead air traffic between Paris and Africa, 2024

Circle areas are proportional to the passengers. Source: Eurostat, avia_par_fr.

Data sources

  • Life expectancy, income, and population: Gapminder, every five years from 1952 to 2007
  • Heart failure mortality: Sante publique France (ODISSE), standardised rates, 2020-2022
  • Air passengers: Eurostat (avia_par_fr), 2024
  • Departments and European countries: IGN (GéoFLA), through mappyng

Save, export, check

deck.save_html("showcase.html", theme="sober")
deck.save_pdf("showcase.pdf", theme="sober")
deck.save_pptx("showcase.pptx", theme="sober")
report = deck.check(theme="sober")

pip install respysive-slide · fbxyz.github.io/respysive-slide