Python in the Browser: Interactive interpreter in the browser for documentation and tutorials

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Python in the Browser: Interactive interpreter in the browser for documentation and tutorials

Michael Foord-5
Hello all,

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.

http://code.google.com/p/pythoninthebrowser/

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.

The interpreter runs in an HTML textarea, with Javascript that
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),
Javascript (for the 'console behaviour' in the textarea) and C# (as a
helper to call into Silverlight from Javascript).

I've entered the known issues at:

http://code.google.com/p/pythoninthebrowser/issues/list

There is a live example at:

http://www.voidspace.org.uk/ironpython/silverlight-console/console.html

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.

Michael Foord  

--
http://www.ironpythoninaction.com/
http://www.theotherdelia.co.uk/
http://www.voidspace.org.uk/
http://www.ironpython.info/
http://www.resolverhacks.net/

_______________________________________________
Doc-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/doc-sig