Mozilla announced a new project called Pyodide earlier this week. The aim of Pyodide is to bring Python's scientific stack into the browser.
The Pyodide project will give you a full, standard Python interpreter that runs in your browser and also give you access to the browsers Web APIs. Currently, Pyodide does not support threading or networking sockets. Python is also quite a bit slower to run in the browser, although it is usable for interactive exploration.
The article mentions other projects, such as Brython and Skulpt. These projects are rewrites of Python's interpreter in Javascript. Their disadvantage to Pyodide is that they cannot use Python extensions that were written in C, such as Numpy or Pandas. Pyodide overcomes this issue.
Anyway, this sounds like a really interesting project. I always thought the demos I used to see of Python running in Silverlight in the browser were cool. That project is basically dead at this point, but Pyodide sounds like a really interesting new hack at getting Python into the browser. Hopefully it will go somewhere.
Copyright © 2024 Mouse Vs Python | Powered by Pythonlibrary