Is there any way to get Python to run on a web browser, other than silverlight?
I'm pretty sure not, but it never hurts to ask (usually).
-
2Silverlight runs on Python??? I might have overslept something interesting.Nikita Rybak– Nikita Rybak2011年02月20日 22:04:11 +00:00Commented Feb 20, 2011 at 22:04
-
1not sure what exactly you want to do, but this may be useful developers.slashdot.org/story/09/09/19/1345236/…Jesse Cohen– Jesse Cohen2011年02月20日 22:07:39 +00:00Commented Feb 20, 2011 at 22:07
-
1There is a python implementation that runs inside silverlight (ironpython). See voidspace.org.uk/ironpython/silverlight/index.shtml6502– 65022011年02月20日 22:07:58 +00:00Commented Feb 20, 2011 at 22:07
-
@Nikita: No, but Python runs on Silverlight.Lennart Regebro– Lennart Regebro2011年02月20日 22:18:46 +00:00Commented Feb 20, 2011 at 22:18
-
@Lennart I think the question was edited, there was 'server' instead of 'web browser' initially.Nikita Rybak– Nikita Rybak2011年02月20日 22:21:07 +00:00Commented Feb 20, 2011 at 22:21
5 Answers 5
Haven't tried it myself but Pyjamas (http://pyjs.org/) claims to contain a Python-to-Javascript compiler. Not exactly what you're asking for but might be worth a look.
Comments
Maybe not exactly what you asked, but close enough: Pyjamas -- Python-to-JavaScript compiler
Comments
skulpt is an interesting new project
Comments
Short of writing your own browser plugin — no.
Comments
There's an open-source project called emscripten that converts C/C++ to JavaScript. The have a version of CPython converted with this tool that runs in the browser as one of their demos.
Probably not something you actually want to do, for a number of reasons, but... it's technically possible. Any Turing-complete language can be converted to any other, after all, and if the languages are popular enough, someone, somewhere, has probably written code to do it.