Skip to content
Tech News
← Back to articles

Pyodide: a Python distribution based on WebAssembly

read original get Pyodide WebAssembly Package → more articles
Why This Matters

Pyodide is a groundbreaking Python distribution that runs directly in web browsers and Node.js environments using WebAssembly, enabling seamless execution of Python code and packages without installation. Its ability to support a wide range of Python packages, including scientific libraries, and facilitate interaction between Python and JavaScript, makes it a powerful tool for web-based applications and scientific computing. This development significantly lowers the barrier to deploying Python-based solutions on the web, impacting both developers and end-users by enabling more interactive and accessible applications.

Key Takeaways

Pyodide is a Python distribution for the browser and Node.js based on WebAssembly.

What is Pyodide?

Pyodide is a port of CPython to WebAssembly/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. Many packages with C, C++, and Rust extensions have also been ported for use with Pyodide. These include many general-purpose packages such as regex, PyYAML, and cryptography, and scientific Python packages including NumPy, pandas, SciPy, Matplotlib, and scikit-learn.

Pyodide comes with a robust Javascript ⟺ Python foreign function interface so that you can freely mix these two languages in your code with minimal friction. This includes full support for error handling, async/await, and much more.

When used inside a browser, Python has full access to the Web APIs.

Try Pyodide (no installation needed)

Try Pyodide in a REPL directly in your browser. For further information, see the documentation.

Getting Started

The Components of the Pyodide Project

... continue reading