Prescons
A "pseudo-interactive" python console for live coding in presentations
Install / Use
/learn @inglesp/PresconsREADME
Presentation Console: prescons.py
This is a "pseudo-interactive" python console for giving presentations that involve some live coding. It reads code from an input file and runs it line by line. You can move through the code by hitting the space bar.
You can also switch to (and from) a normal interactive console by pressing Ctrl-C. This allows you to inspect, and even make changes to, the console's environment in the middle of a presentation.
There is a video of it in action, for my Europython talk on the descriptor protocol, at youtube.com/watch?v=D3-NZXHO5QI. The input file can be found at github.com/inglesp/Discovering-Descriptors/blob/master/descriptors.py.
Suggestions, bug reports, patches welcome at github.com/inglesp/prescons.
Usage:
$ python prescons.py <filename>
Alternatively, install the library from PyPI (eg with $ pip install prescons) and then run:
$ python -m prescons <filename>
Tested on Posix and Windows, and with pythons 2.7 and 3.2+
Thanks to Asim Ihsan (github.com/asimihsan) and Tom Close (github.com/TomClose) for testing and ideas.
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
