[Doc-SIG] Python in the Browser: Interactive interpreter in the browser for documentation and tutorials
fuzzyman at voidspace.org.uk
Sun Jun 15 15:39:24 CEST 2008
I thought you might be interested in my latest project as it could be
very useful for providing live examples for documentation and tutorials.
I've setup a project page for "Python in the Browser", an interactive
Python interpreter that runs in an HTML textarea.
There's no download yet, but I have checked in the current code.
"Python in the Browser" is an interactive Python interpreter that runs
in the browser, using Silverlight 2 and IronPython?.
This is ideal for tutorials and documentation, where example Python code
can actually be tried in the browser.
It requires Silverlight 2 Beta 2, and the Python version is 2.5.
communicates with Silverlight and prevents you deleting text from the
console except after the interactive prompt.
Target browsers are Firefox 2 & 3, Safari and IE 7. (Although reports on
compatibility with other browsers welcomed.)
Currently it 'works' but is at an early stage of development.
The project is a combination of IronPython? (for the interpreter loop),
I've entered the known issues at:
There is a live example at:
I'm not sure how quickly I will be able to develop this (I have a book
to finish!), but it should be very easy to knock out a couple of the
simpler issues quickly.
If you want to contribute then please post patches to the issue tracker.
More information about the Doc-SIG