Setting up Python Pyjamas

I’m just playing around with the Python Pyjamas toolkit for no reason. The Pyjamas Book is slightly difficult to follow. Here are my notes.

Check out Pyjamas from Git and run bootstrap file.

$: git clone git://pyjs.org/git/pyjamas.git
$: cd pyjamas
$: python bootstrap.py 

Running bootstrap.py creates a bin directory. If you plan on playing with this a lot it may be worthwhile to link the files in bin to your environment path.

## (I have ~/bin referenced on my environment path. You might not!)
$: ln -s ../pyjamas/bin/pyjscompile ~/bin
$: ln -s ../pyjamas/bin/pyjsbuild ~/bin

Try an example

$: cd ../pyjamas/examples/helloworld
$: pyjsbuild Hello.py
= pyjamas Compiles some stuff into ./output =

Pyjamas dumps a bunch of files into an output subdirectory. Take a look at the Hello.html file that got generated.

Now you can follow the Pyjamas book.

For now: figure out how to create a UI with Pyjamas.

Next Steps: Use Pyjamas with Google App Engine.