Python in the Browser
- Why should it run in the browser?
- Because my target is desktop and “mobile” (phones and tablets for the rest of us), and I’m not excited about doing separate Android (version ???) and iOS versions.
- What sort of functionality am I looking for?
- Ideally, pygame or similar. Many of these programs will be aimed at kids, and need to operate rather like games. Obviously I don’t expect to get that, but we can always dream, right?
The following projects are in the shortlist. The main criterion for being there is that the project attempts to execute Python in the browser, and it’s still alive. Here they are, in no particular order:
Pyjamas allows you to write a program and have it run on the desktop or in a browser. It implements its own GUI toolkit (derived from something Google did).
Brython has a slick looking website too, but what really sets it apart is that the python appears inside a
<script type="text/python"> tag. I think that’s just awesome right there.
To Be Continued…
Next time, I’ll take a more serious look at each contender in turn, examining things like:
- What it provides
- Ease of installation
- Coolness of the online examples
- Learning curve (with a Hello World example)
- Coverage of the Python standard library
- Ease of programming graphics
Posted Monday, February 9, 2015