Skip to main content

Tool for making presentations using the Python REPL

Project description

Flanellograf [flanellogrˈaf]

Flanellograf is a tool for making presentations in the Python REPL (it is not a terminal user interface (TUI), at every slide you are in the interactive repl with access to the code from the slide).

This is a quick and dirty WIP prototype and making the slideshow interactive in the REPL involves some serious python hackery. There are ruff edges, beware.

A slide can contain a title, markdown content and Python code. Python code in the slide is ran as you go trough the presentation, meaning that any example in a slide can be further explained using the REPL.

Installation

The tool will work on Python 3.9 and above, however with the improvements to the REPL in Python 3.13, that version is recomended (especially the multiline editing feature, but built in syntax highlighting is also nice).

The code is published to PyPI so pip install flanellograf should work, it will also install it's only requirement rich.

You could also clone or zip this project and run pip install ..

It's prefered to install Flanellograf into a virtual environment regardless of installation method.

If you are presenting some code from your own project just add flanellograf as a dev-dependency and check the slides into git. This way the presentation can be part of the documentation of your project. You can use your development tools like linter and formaters, and even test your presentation (mind-blown) giving you a heads up if change break one of your slides.

Usage

For now flanellograf must be called as a module with a path parameter: python -im flanellograf path_to_folder_or_file

Any file found in path with the glob pattern **/board_*.py will be read as a board and listed in the TOC.

See the examples directory for how to make a board.

Navigation

A shorthand name for your board(s) are automatically made (they are listed in the TOC shown at startup). With the example board named board_example.py the shorthand becomes e.

~e : Refresh current slide (remove anything you have done in the REPL)

e : Next slide

-e : Previous slide

+e : Jump to first slide

e(n) : Jump to slide number n, where n is an integer. (Negative numbers count from the end)

Inspiration

Inspiration and ideas for making this tool.

Project details


Download files

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

Source Distribution

flanellograf-0.4.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flanellograf-0.4.2-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file flanellograf-0.4.2.tar.gz.

File metadata

  • Download URL: flanellograf-0.4.2.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.8

File hashes

Hashes for flanellograf-0.4.2.tar.gz
Algorithm Hash digest
SHA256 6160ea204cf259bb8b7ba9af8fb8d7bb6c26864c3fd2aa2481b138f86fc003ae
MD5 9517b8964351b233f4e4ec99e58d3e99
BLAKE2b-256 ced8cfc23a761abcc2d5321e8634498547725f75f1fcfa6a3805c0d75118f8ab

See more details on using hashes here.

File details

Details for the file flanellograf-0.4.2-py3-none-any.whl.

File metadata

File hashes

Hashes for flanellograf-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a66191582fd61c839107e2fc61e315dd5fb663998c8c4697d42e777781bd0db7
MD5 bd51dc6da2135057547616a64fa19972
BLAKE2b-256 c08f6c16504568e900408bcc99b81c53f154b43f08e95178db8caf9bd8a72b8a

See more details on using hashes here.

Supported by

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