Skip to main content

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?

  1. Install slidedown with pip
pip install slidedown
  1. Start presenting your markdown files
slidedown README.md
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

slidedown-0.3.0-py3-none-any.whl (27.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page