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. All other data-
attributes will be interpreted
as parameters to pass to Main()
.
IDOM in Slidedown Example
The following markup:
# Hello IDOM!
<span data-idom="hello.py" data-greeting="hello" />
and a script hello.py
containing:
import idom
@idom.component
def Main(greeting: str):
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 {greeting} {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
Built Distribution
File details
Details for the file slidedown-0.6.3.tar.gz
.
File metadata
- Download URL: slidedown-0.6.3.tar.gz
- Upload date:
- Size: 8.6 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 | ccecf1f3c27e2d0f5edc7137d11e1f720efd76083e59f180f671861997383185 |
|
MD5 | 4a62a026affd81bae748a074524ec258 |
|
BLAKE2b-256 | 400b7c5e4ff2c6bfc8209fb65af6e91609f541410c6509203946ead6f77b1c33 |
File details
Details for the file slidedown-0.6.3-py3-none-any.whl
.
File metadata
- Download URL: slidedown-0.6.3-py3-none-any.whl
- Upload date:
- Size: 8.7 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 | bab7164680f15f70fae8c4e9f6252614b1b7366843b23e2bf5bd7cbb869cb451 |
|
MD5 | e269e72206faa1f997a7537659a29ba1 |
|
BLAKE2b-256 | e3216d6774825b76ebef171304d020dfa8b8bb53d47dcccd22514d887697c9ba |