sliderepl starts a file of "sample code" into an interactive Python session.
It will load up an enhanced session that injects the code into the session a section at a time.
The injected code looks and runs just as if the user had typed it themselves at the prompt.
It's even added to their readline history.
Users can just follow along the presentation, watching the output a section at a time, or dive in and explore the code being presented.
Here are some key features of "sliderepl":
· Doesn't interfere with your sample code- just add some delimiters in comments.
· Develop slides naturally in your regular text editor- it's just a .py.
· Sample code is still readable, copy-and-pastable, whatever.
· Directly embeddable in the sample code file without polluting the code environment.
· Or usable as an import.
· Users just run python samplecode.py and get a >>> shell.
· The shell has extra commands: next slide, goto slide, show slides, etc.
· Readline support with tab completion and input history integration.
· Can do bullet-point-style slides as well.
· Easily extensible.
· Small in size.
· Python 2.3 through 2.6a