Skip to main content

representty

representty is a tiny presentation framework. TL;DR: You write your slides in Markdown, rich renders individual slides, and the whole thing happens in an IPython shell.

asciicast

File Format

A slide deck is mostly a Markdown file. Individual slides are seperated by a bunch of equals signs.

Additionally, you can start a line with:

  • //: comment; the line is ignored (unless the environment variable PRACTICE is set).
  • !: special instruction. The line is not included in the output, but can do a variety of things:
    • !!some command: execute the command with os.system() the first time this slide is visited.
    • !import somemodule: silently import the given module.
    • !set flag/!unset flag: set/unset a named flag. These can influence representty behaviour. See flags.
    • !setlocal flag/!unsetlocal flag: (un)set a flag, but reset to original value at the end of the slide.
    • !image someimage: Display an image. This only works if you have viu installed.
    • !up some_int: Move the cursor up by some amount. Useful for drawing over images.
    • !printf something: Call printf with the given args. Better than plain !!printf, because it will be executed every time the slide is displayed by default.

Python code blocks (language starts with py) are not just rendered, but also executed.

Commands

The presenter is dropped into a more-or-less normal IPython shell. A few single-letter commands exist which control the slide show:

  • d: (Re)draw the current slide.
  • n: Go to the next slide.
  • p: Go to the previous slide.
  • q: Quit.
  • g: Go to a numbered slide (you will be prompted for a slide number).
  • s: Go to a slide by searching for a keyword (you will be prompted).

Flags

  • exec: whether to execute Python code in code blocks. Default: set.
  • alwaysexec: Always execute shell commands (!!), rather than just at the first printing of the slide. Default: unset.

Metadata

Release files for representty 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for representty 0.1.5
File Size Uploaded Provenance
representty-0.1.5.tar.gz 3.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for representty 0.1.5
File Interpreter ABI Platform
representty-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / representty-0.1.5.tar.gz

Download URL representty-0.1.5.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ce316b5008f4f0ba07ad9b522ffa3226c47d2d4dd97000aa118f42ffc6d05450
BLAKE2b-256 checksum
How to use checksums
bcb0c53b02a71547507cf50a93e5e6548d4b503197add405ff234ce4070c64b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.10.0 Darwin/23.4.0

Release files / representty-0.1.5-py3-none-any.whl

Download URL representty-0.1.5-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ba80f6a23187a2ea06ed714a260c94ec27d5f5d482e284cca2da7ff36068d89
BLAKE2b-256 checksum
How to use checksums
d8088dba90ddadcc4d702f7ef5a423ab85b661a1359005cadf6d9906591a5a62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.10.0 Darwin/23.4.0

Security for representty 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page