Python Programming, news on the Voidspace Python Projects and all things techie.

PyCon UK and Mix UK Photos

emoticon:avocado Unfortunately I forgot my camera at both the PyCon UK Mix UK conferences I attended recently. Luckily other people weren't so dopey.

A picture of me giving my presentation at PyCon UK, from Chris Miles:

Python in your browser at PyCon UK

The next one is by Craig Murphy, and you can just about see me with Zi watching Scott Guthrie demonstrating the next generation of ASP.NET (a great improvement):

Michael at Mix UK

Like this post? Digg it or it.

Posted by Fuzzyman on 2007-09-19 22:14:38 | |

Categories: ,

Resolver Screencast: Web Application in Ten Minutes

emoticon:python Giles has put up a ten minute screencast of Resolver in action. As you will probably guess from the title, it covers both the desktop version and the web server.

If after all my descriptions you still haven't got a clue what Resolver is actually for, this shows off some of the best features in just ten minutes. Smile

If this whets your appetite, you can still sign up for the Resolver beta program. The next phase of the beta is still a couple of weeks away, but shouldn't be much longer.

Like this post? Digg it or it.

Posted by Fuzzyman on 2007-09-19 21:40:48 | |

Categories: ,

Python Interactive Interpreter in a Browser

emoticon:boxing_gloves Ok, so I lied. One more entry on Silverlight. I've got a proof of concept 'Interactive Interpreter in the Browser' working with IronPython & Silverlight. There are lots of ways it could be improved (I'll discuss these in a minute), but it is still quite fun.

Python interactive interpreter in your browser!

This could be embedded into web based tutorials (like Crunchy) to provide live examples. Because the Python code executes in the browser (not on the server) there are no security issues to worry about. It doesn't actually use the Silverlight canvas, just an HTML textarea and text input field, so you could have several in a page if you wanted. You could also prepopulate the namespace(s) with live objects.

It has several limitations, most of which someone (you?) could fix and one of which will have to wait for the next update to Silverlight. If you fancy downloading it as it is, head over to my IronPython & Silverlight Page.

  1. It would be greatly improved by being in a single textarea field. Only the last line after the prompt should be editable. This is fiddly to do in a cross-browser way, but not very difficult [1].
  2. Evaluated expressions aren't shown as they are in the 'normal' interactive interpreter (you have to use print to see the result). This is actually due to a bug in IronPython 2, which will be fixed in the next release (basically a one line fix!) [2]!.
  3. You have to provide the standard library if you want it to be available!
  4. In Silverlight the file type doesn't exist (for a good reason), so more stuff than usual is broken. Smile

Note that this does use some standard library modules, which I've modified slightly to work with IronPython & Silverlight. These are included in the download.

[1]Some of the editing code could be borrowed from PyShell which is a wxPython interpreter widget that operates in a control very similar in appearance to a textarea. It also uses the Python standard library code module.
[2]There is code in the DLRConsole IronPython example which could be used if you are desperate to get a working version of this. It takes a very different approach and so would be a lot more code - but the source code is very readable if you are prepared to work with the DLR API.

Like this post? Digg it or it.

Posted by Fuzzyman on 2007-09-19 21:08:20 | |

Categories: , , ,

IronPython & Silverlight Articles & Resources

emoticon:nightmare Ok, last post on Silverlight for a while. Smile

I've turned my PyCon / Mix UK talks into a series of articles. You can access the articles, downloads and online examples from:

The articles are:

For Mix I added a couple of extra examples to the Web IDE:

You can download the source files from the main articles page.

Like this post? Digg it or it.

Posted by Fuzzyman on 2007-09-17 13:47:07 | |

Categories: , ,

Hosted by Webfaction