Simple slide decks with Markdown and Python
Project description
Slidedown
- Do you ✍️ Slides?
- Do you 😠 PowerPoint?
- Do you ❤️ Markdown?
You're in Luck!
Turn markdown like this:
# Step 1
Create an awesome slide deck.
# Step 2
Present it to awesome people.
# Step 3
Profit?
Into slides like this:
How?
- Install
slidedown
withpip
pip install slidedown
- Start presenting your markdown files
slidedown README.md
- Open up your browser
http://localhost:5678/client/index.html
Interactive Elements
You can embed interactive views into your slides using
IDOM,
by adding an HTML element into your markup with an attribute of the form
data-idom="your_script.py"
where your_script.py
should be placed in the same
directory that slidedown
was invoked and must contains a function Main()
that
returns an IDOM element or a VDOM dict.
For example, the following markup:
# Say Hello IDOM
<span data-idom="hello.py">
and a script hello.py
dwith the following content:
import idom
@idom.element
def Main():
hi_count, set_hi_count = idom.hooks.use_state(1)
plural = 's' if hi_count > 1 else ''
return idom.html.button(
{"onClick": lambda event: set_hi_count(hi_count + 1)},
f"IDOM said hi {hi_count} time{plural}",
)
Should produce the following output:
Say Hello IDOM
IDOM said hi 1 time
Clicking the button should increment the count (it won't here of course).
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 Distributions
Built Distribution
File details
Details for the file slidedown-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: slidedown-0.3.0-py3-none-any.whl
- Upload date:
- Size: 27.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b28b541b6f56a4f5d187aa401dce1f96d75f41a6455b9f93c0e2442c962426e1 |
|
MD5 | 6aeecf92c3da3fc68fde57ce7722df75 |
|
BLAKE2b-256 | d758543ab2d1ce180a345389fedb53bac145f5281c694b807190dd0b1a257077 |