Building presentations with Ludic in Python.
pip install ludic-slides
Create a new file slides.py
with the following content:
from ludic_slides import Slide, SlideMain, Slides
from ludic_slides.components import Code, Header, Item, List, Paragraph, b
slides = Slides(
SlideMain(
Header("My Slides"),
Paragraph(f"A {b("Quick Start")} for Ludic Slides"),
),
Slide(
Header("Installation"),
List(
Item(Code("$ pip install ludic-slides")),
Item(Code("$ ludic-slides slides.py")),
)
),
)
The following command generates slides.html
file:
ludic-slides slides.py
If the variable's name in the slides.py
file does not equal slides
, you can also specify a different name:
ludic-slides file-name.py:my_variable
You can also specify the output path:
ludic-slides slides.py -o ~/Documents/my-slides.html
Note
Note that outputting to a different location means you will need to copy static files like images used in your presentation to the correct location manually.