Pyodide Brings Python and Its Scientific Stack to the Browser with WebAssembly

Pyodide Brings Python and Its Scientific Stack to the Browser with WebAssembly

Pyodide brings Python and its scientific stack to the browser with WebAssembly. Pyodide leverages the CPython 3.8 interpreter compiled to WebAssembly, and thus allows using Python, NumPy, Pandas, Matplotlib, SciPy, and more in Iodide. Pyodide may be used in any context where it is necessary to run Python inside a web browser with full access to the Web APIs.

Mozilla  announced that  Pyodide, a project aiming at providing a full Python data science stack running entirely in the browser, has become an independent community-driven project. Pyodide leverages the CPython 3.8 interpreter compiled to WebAssembly, and thus allows using Python, NumPy, Pandas, Matplotlib, SciPy, and more in  Iodide, an experimental interactive scientific computing environment for the web.

The Pyodide team originally  explained the rationale behind Pyodide as follows:

When we started thinking about making the web better for scientists, we focused on ways that we could make working with Javascript better, like compiling existing scientific libraries to WebAssembly and wrapping them in easy-to-use JS APIs. […]  Mozilla’s WebAssembly wizards offered a more ambitious idea: if many scientists prefer Python, meet them where they are by compiling the Python science stack to run in WebAssembly.

The Iodide playground showcases  a notebook that uses Python and Python packages in a JavaScript environment and vice versa:

Iodide showcase

Pyodide may be used in any context where it is necessary to run Python inside a web browser with full access to the Web APIs. The  latest release note states that Pyodide converted the Python 3.8 runtime to WebAssembly, along with the Python scientific stack including  NumPy (scientific computing),  Pandas (data analysis),  Matplotlib (plotting library), SciPy (scientific and technical computing), and  scikit-learn (machine learning). 75 packages are available at the time of the release. Pure  Python wheels may also be installed from the  PyPi Python package manager. Python 0.17 additionally provides transparent conversion of objects between JavaScript and Python.

python data science javascript webassembly

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Data Science With Python Training | Python Data Science Course | Intellipaat

🔵 Intellipaat Data Science with Python course: https://intellipaat.com/python-for-data-science-training/In this Data Science With Python Training video, you...

How To Build A Data Science Career In 2021

In Conversation With Dr Suman Sanyal, NIIT University,he shares his insights on how universities can contribute to this highly promising sector and what aspirants can do to build a successful data science career.

Data Science with Python Certification Training in Chennai

Enroll in our Data Science with Python training in Chennai. Best Data Science with Python Training courses in Chennai for 100% Job Placements Support.

Python for Data Science | Data Science With Python | Python Data Science Tutorial

🔥Intellipaat Python for Data Science Course: https://intellipaat.com/python-for-data-science-training/In this python for data science video you will learn e...

How to Master Python for Data Science

In this tutorial, we'll learn How to Master Python for Data Science. What's so special about it? Why is it used by so many professionals? Here’s the Essential Python you Need for Data Science.