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.
IDOM in Slidedown Example
The following markup:
# Hello IDOM!
<span data-idom="hello.py" />
and a script hello.py
containing:
import idom
@idom.component
def Main():
hi_count, set_hi_count = idom.hooks.use_state(1)
return idom.html.button(
{"onClick": lambda event: set_hi_count(hi_count + 1)},
f"IDOM said hi {hi_count} time(s)",
)
Should produce the following output:
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 Distribution
slidedown-0.6.2.tar.gz
(8.3 kB
view details)
Built Distribution
File details
Details for the file slidedown-0.6.2.tar.gz
.
File metadata
- Download URL: slidedown-0.6.2.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b640bca8c7ff02b90094d614589d0dc9ec1951b664c4304b8a7c16033e0dab3a |
|
MD5 | eb6500db9d18e36d18828e567c9a206a |
|
BLAKE2b-256 | 1f6c99ad79c97e7abb98fe58e355072390925dd26afb4f8d89d58a27a8092db2 |
File details
Details for the file slidedown-0.6.2-py3-none-any.whl
.
File metadata
- Download URL: slidedown-0.6.2-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f32a4fd67d26bf07afc5aeb837f3eebc5dca6e824212e564593e67072e9b774 |
|
MD5 | a54461d3ade89b3221534a135d5767ed |
|
BLAKE2b-256 | 0b8572a5b4b7904d22b5d53c366082543f7afff75bf6f71751a3b74366a33aee |