Want to Run Python Code in a Browser? Soon You Might Be Able To
source link: https://developers.slashdot.org/story/22/05/14/027245/want-to-run-python-code-in-a-browser-soon-you-might-be-able-to
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Posted by EditorDavidon Saturday May 14, 2022 @01:34PM from the better-than-PHP dept.
ZDNet reports news from PyCon 2022 ("the first in-person meet-up for Python contributors since 2019 due to the pandemic")
"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.
Aggregate valuable and interesting links.
Joyk means Joy of geeK