1

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).

Jochen Ritzel
  • 104,512
  • 31
  • 200
  • 194
bukzor
  • 37,539
  • 11
  • 77
  • 111

5 Answers5

2

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.

Peter Briggs
  • 126
  • 1
  • 2
1

Maybe not exactly what you asked, but close enough: Pyjamas -- Python-to-JavaScript compiler

1

skulpt is an interesting new project

Dima Tisnek
  • 11,241
  • 4
  • 68
  • 120
0

Short of writing your own browser plugin — no.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
0

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.

kindall
  • 178,883
  • 35
  • 278
  • 309