Nelsie allows you to create slides programmatically using Python. It is a library with a Python API and a renderer written in Rust. The output is a PDF file or a set of SVG/PNG files.
There is no DSL or GUI; presentations created with Nelsie are fully programmed in Python. We believe that creating presentations in a programmable way makes the process of creating slides smoother and more reliable.
Nelsie focuses on controlling what the audience sees, so you can continuously reveal fragments of the slide, or simply manage which parts are highlighted.
Quick links
- Documentation
- Demonstration of features (PDF, source code)
- Blog post why Nelsie was created
$ pip install nelsie
fromnelsieimportSlideDeckdeck=SlideDeck()
@deck.slide()defhello_world(slide):
slide.text("Hello world!")
deck.render("slides.pdf")Nelsie allows you to easily reveal parts of slides:
@deck.slide()defsteps_demo(slide):
semaphore=slide.box(width=100, height=300, bg_color="gray")
semaphore.box(
y=StepVal(20).at(2, 110).at(3, 210), # Set "y" coordinate for each stepwidth=80,
height=80,
bg_color=StepVal("red").at(2, "orange").at(3, "green"), # Set color for each step
)
slide.code(
"""fn main() { // Print text to the console. println!()"Hello World!");}""",
"Rust",
show=4, # Show in 4. stepm_top=80,
)The code generates four PDF pages:




