A "pseudo-interactive" python interpreter for live demos
Python
Switch branches/tags
Nothing to show
Pull request Compare This branch is 11 commits ahead of asimihsan:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
example.py
prescons.py

README

prescons.py

This is a "pseudo-interactive" python interpreter.  I hacked this together
when preparing a presentation that involved some live coding.  It reads code
from an input file and runs it line by line.  You can move through the code by
hitting 'space'.

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
namespace in the middle of a presentation.

Suggestions, bug reports, patches welcome at github.com/inglesp/prescons.

Usage:

 $ python prescons.py <filename>

See example.py for an example.

Tested on Posix and Windows, and with pythons 2.7 and 3.2

Thanks to Asim Ihsan (https://github.com/asimihsan/) for testing and ideas.