Want to Run Python Code in a Browser? Soon You Might Be Able To
Saturday May 14, 2022. 07:34 PM , from Slashdot
'Developers revisited the idea of running Python code in the browser....'
'Now, however, that may be about to change.'
While the Foundation notes cross-compiling to WebAssembly is still 'highly experimental' due to missing modules in the Python standard library, nonetheless, PyCon 2022 demonstrated growing community interest in making Python a better language for the browser.
The article notes additional news from Anaconda (makers of the a Python distribution for data science): the announcement of PyScript, 'a system for interleaving Python in HTML (like PHP).'
PyScript is built on Pyodide, a port of CPython, or a Python distribution for the browser and Node.js that's based on WebAssembly and Emscripten.... 'Pyodide makes it possible to install and run Python packages in the browser with micropip. Any pure Python package with a wheel available on PyPI is supported,' the Pyodide project states. Essentially, it compiles Python code and scientific libraries to WebAssembly using Emscripten.
Read more of this story at Slashdot.
May, Tue 17 - 18:57 CEST