Mozilla’s experimental Pyodide project is bringing a Python data science stack to the web browser, by compiling it to WebAssembly. Pyodide is a WebAssembly implementation of Python’s Numpy scientific computing library, the Pandas data analysis library, and parts of the SciPy library for math, science, and engineering. Python’s Matplotlib plotting library is incorporated as well.
Closely related to Mozilla’s Iodide project for doing data science in a browser, Pyodide can be used in a stand-alone fashion or in any context where developers want to run Python in a browser. Transparent conversion of objects is provided between JavaScript and Python, giving Python full access to web APIs. Basic data types are implicitly converted as well, while JavaScript typed arrays are converted to Python memoryviews
.
To read this article in full, please click here