My first post to the IronRuby list, sorry it is mainly about IronPython
(and sorry for the HTML in the post - I plead special circumstances and
won’t do it again).
I’ve just put up articles and demos based on my PyCon talk about Dynamic
Silverlight. All the examples use Python, but the articles on packaging,
embedding in C#, compiling from the command line and using the
Silverlight APIs are all relevant.
These articles also include the Interactive Python Interpreter in the
browser that Harry Pierson mentioned. (It won’t work properly until the
Python binaries from Dynamic Silverlight have a bugfixed and I fix the
is based on a Python standard library module called ‘code’ (
http://docs.python.org/lib/module-code.html ) - so it won’t port
directly to Ruby. On the other hand there is no reason why a similar
for providing a console in a textarea).
IronPython & Silverlight 2 Tutorial with Demos and Downloads
Instead of posting my PyCon talk slides, I’ve turned them into a series
of articles instead, which should be easier to follow. All the examples
are available online and for download. This is everything you need to
get started with IronPython and Silverlight 2.
All the articles, demos and downloads can be found at: Voidspace
IronPython and Silverlight Pages
You can experiment online with the IronPython & Silverlight Web IDE
There is also a prototype of my Interactive Python Interpreter in the
Due to a bug in the /current/ Dynamic Silverlight binaries it can’t
handle indented blocks. I expect Dino will be able to post fixed
then get in touch! (Currently it is safari only I think.)
These articles will take you through everything you need to know to
write Silverlight applications with IronPython:
You can download several of the examples used in the articles:
* View Minimal IronPython Example 1 Online (with XAML) <http://www.voidspace.org.uk/ironpython/minimal/index.html> * Download Minimal IronPython Example 1 <http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?section=python&file=MinimalIronPythonProject.zip> * View Minimal IronPython Example 2 Online (pure-Python) <http://www.voidspace.org.uk/ironpython/minimal2/index.html> * Download Minimal IronPython Example 2 <http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?section=python&file=MinimalIronPythonProject2.zip> * View IronPython Controls Example 1 Online (from XAML) <http://www.voidspace.org.uk/ironpython/controls/index.html> * Download IronPython Controls Example 1 <http://www.voidspace.org.uk//cgi-bin/voidspace/downman.py?section=python&file=IronPython-Controls.zip> * View IronPython Controls Example 2 Online <http://www.voidspace.org.uk/ironpython/controls2/index.html> * Download IronPython Controls Example 2 <http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?section=python&file=IronPython-Controls2.zip> * View Simple Animation Example Online <http://www.voidspace.org.uk/ironpython/animation/index.html> * Download Simple Animation Example <http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?section=python&file=IronPython-animation.zip>
The easiest way of experimenting with the Silverlight APIs is through
the Web IDE:
* View IronPython & Silverlight Web IDE Online <http://www.voidspace.org.uk/ironpython/webide/webide.html>. * Download IronPython & Silverlight Web IDE 0.5.0 <http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?section=python&file=webide.zip>.
The following downloads use C#:
* Visual Studio 2008 Project Using the Scriptable Attributes <http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?section=python&file=ScriptableProject.zip> * Compiling C# from the Command Line (batch file) <http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?section=python&file=csl.bat> * Embedded IronPython Project <http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?section=python&file=EmbeddedWithCodeBehind.zip>
One of the most exciting things about Silverlight 2 is the possibility
of embedding an interactive interpreter inside web pages:
* View Interactive Interpreter Online <http://www.voidspace.org.uk/ironpython/silverlight-console/console.html> * Download Interactive Interpreter <http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?section=python&file=interpreter.zip>
If you find any bugs, typos or missing links then please let me know.
Posted by Fuzzyman on 2008-03-22 19:03:34.
Visit the Voidspace Techie Blog
http://www.voidspace.org.uk/python/weblog/index.shtml to read this
entry and more.