[IronPython] First cut of an interactive IronPython Interpreterrunning in the browser

Michael Foord fuzzyman at voidspace.org.uk
Mon Jun 16 00:55:26 PDT 2008


Keith J. Farmer wrote:
>
> Neat
>
> Small bug: the Start/End/Pos don’t update until a key press. Probably 
> a simple fix. J
>

The start / end / pos are purely there for debugging and are updated on 
a keypress. They will be removed when I get a chance to test and fix the 
Javascript with IE. :-)


Michael

> *From:* users-bounces at lists.ironpython.com 
> [mailto:users-bounces at lists.ironpython.com] *On Behalf Of *Michael Foord
> *Sent:* Sunday, June 15, 2008 2:10 PM
> *To:* Discussion of IronPython
> *Subject:* Re: [IronPython] First cut of an interactive IronPython 
> Interpreterrunning in the browser
>
> 2008/6/15 Jonathan Slenders <jonathan at slenders.be 
> <mailto:jonathan at slenders.be>>:
>
> Good work, this looks useful. Maybe you also want to capture the 
> 'tab'-key -- I hate spaces for indentation.
>
> Some bug I noticed, when calling stdout.write myself:
>
>
> This bug - along with not handling syntax errors properly - should now 
> be fixed (both in SVN and the online demo).
>
> Michael Foord
>
>         Python 2.5.0 () on silverlight
>         The interactive browser interpreter by Michael Foord
>         >>> import sys
>         >>> sys.stdout.write('test')
>         test>>> print 'a'
>         ... print 'b'
>         ...
>
>
>     I guess it's also impossible to ever capture sys.__stdout__ or
>     sys.__stderr__ in silverlight, apart from writing a IronPython
>     host in c#.
>
>
>     Jonathan
>
>     2008/6/15 Michael Foord <fuzzyman at voidspace.org.uk
>     <mailto:fuzzyman at voidspace.org.uk>>:
>
>     Michael Foord wrote:
>
>     Well, I've finally converted my Silverlight interactive
>     interpreter to work with Silverlight 2 Beta 2 - and it works!
>
>     Hmmm... damn. Still doesn't handle syntax errors properly. This
>     may well be the fault of my code though - I'll need to look into it.
>
>     For non syntax-errors it seems to be working fine.
>
>     If you really want to see the source you can get it from the xap file:
>
>
>
>     http://www.voidspace.org.uk/ironpython/silverlight-console/
>
>     I might start a google project to get an SVN repository for the code.
>
>     Michael Foord
>
>         http://www.voidspace.org.uk/ironpython/silverlight-console/console.html
>
>         There's no download yet and I've only tested on Firefox 3 and
>         Safari (but the Javascript works on both as far as I can tell
>         - more work probably needed to get it working on FF 2 and IE).
>
>         It also doesn't include much of the standard library yet
>         either - but this could be great for tutorials and interactive
>         documentation.
>
>         Michael Foord
>
>
>
>     -- 
>     http://www.ironpythoninaction.com/
>     http://www.theotherdelia.co.uk/
>     http://www.voidspace.org.uk/
>     http://www.ironpython.info/
>     http://www.resolverhacks.net/
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.ironpython.com <mailto:Users at lists.ironpython.com>
>     http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.ironpython.com <mailto:Users at lists.ironpython.com>
>     http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
>
>
> -- 
> http://www.ironpythoninaction.com/
> http://www.theotherdelia.co.uk/
> http://www.voidspace.org.uk/
> http://www.ironpython.info/
> http://www.resolverhacks.net/
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>   



More information about the Users mailing list