Pyodide
An open-source project that compiles the CPython interpreter to WebAssembly, enabling Python code to run in browsers or edge runtimes. It includes built-in support for scientific computing libraries such as NumPy and pandas.
Core Facts
Datasette Lite is a version of Datasette that runs in the browser, using Pyodide to compile the Python runtime to WebAssembly and execute it in the browser, with no need to install a local Python environment or start a server.
WebAssembly provides a sandboxed runtime environment where plugins cannot directly access the host process's memory, isolating plugins from the main program.
Timeline (last 90 days)
PEP 783 is a proposal being advanced by the Python community that aims to establish a standard binary wheel distribution format and PyPI publishing specification for WebAssembly platforms (such as Pyodide and PyScript), so that packages containing C extensions can be installed in browser environments like ordinary wheels.
The author created the datasette/pysqlite3-wasm-wheels repository, providing WebAssembly-compiled pysqlite3 wheels for 163 different SQLite versions; when a ?sqlite= version number is passed, Datasette Lite resolves the corresponding wheel path, downloads it, and installs it into the Pyodide environment.
The server hosting the SQLite file loaded by the ?url= parameter must return the Access-Control-Allow-Origin response header; otherwise the browser will not allow Pyodide's fetch request to read its contents.
The first version of Datasette Lite was created in 2022, running Datasette in a Pyodide Web Worker and injecting the generated HTML into the top-level page via innerHTML.
The datasette-maplibre demo can run in the latest version of Datasette Lite, loading the plugin and demo database in the browser via Pyodide and WebAssembly, with no local installation required.
Datasette Lite is a version of Datasette that runs in the browser, using Pyodide to compile the Python runtime to WebAssembly and execute it in the browser, with no need to install a local Python environment or start a server.
The JavaScript library tag counts libraries loaded from a CDN and used by two or more tools, such as marked, Pyodide, DOMPurify, Leaflet, three.js, and others.
The appearance of Pyodide in the tag cloud shows that quite a few tools run Python in the browser; the high-frequency use of Canvas 2D and Clipboard API reflects that these tools lean interactive and practical; the presence of DOMPurify and markdown-it suggests that many tools involve Markdown rendering and HTML sanitization.
Twindex provides an in-browser demo that runs locally via Pyodide, with each proof replay taking about 0.2 seconds.
N.O.V.A. runs Python with a time limit via Pyodide in a Web Worker, runs SQL via SQLite compiled to WebAssembly, and keeps reference solutions on the server until the user solves the problem.
9 more timeline events
All Facts (19)
Datasette Lite is a version of Datasette that runs in the browser, using Pyodide to compile the Python runtime to WebAssembly and execute it in the browser, with no need to install a local Python environment or start a server.
70%VerifiedWebAssembly provides a sandboxed runtime environment where plugins cannot directly access the host process's memory, isolating plugins from the main program.
65%UnverifiedPyodide compiles the CPython interpreter along with scientific computing libraries such as NumPy and Pandas into WASM, and is widely adopted by projects such as JupyterLite.
60%UnverifiedThe server hosting the SQLite file loaded by the ?url= parameter must return the Access-Control-Allow-Origin response header; otherwise the browser will not allow Pyodide's fetch request to read its contents.
50%UnverifiedThe first version of Datasette Lite was created in 2022, running Datasette in a Pyodide Web Worker and injecting the generated HTML into the top-level page via innerHTML.
50%UnverifiedThe datasette-maplibre demo can run in the latest version of Datasette Lite, loading the plugin and demo database in the browser via Pyodide and WebAssembly, with no local installation required.
50%UnverifiedThe appearance of Pyodide in the tag cloud shows that quite a few tools run Python in the browser; the high-frequency use of Canvas 2D and Clipboard API reflects that these tools lean interactive and practical; the presence of DOMPurify and markdown-it suggests that many tools involve Markdown rendering and HTML sanitization.
50%UnverifiedThe JavaScript library tag counts libraries loaded from a CDN and used by two or more tools, such as marked, Pyodide, DOMPurify, Leaflet, three.js, and others.
50%UnverifiedTwindex provides an in-browser demo that runs locally via Pyodide, with each proof replay taking about 0.2 seconds.
50%UnverifiedN.O.V.A. runs Python with a time limit via Pyodide in a Web Worker, runs SQL via SQLite compiled to WebAssembly, and keeps reference solutions on the server until the user solves the problem.
50%UnverifiedThe latency bottleneck of the Pyodide approach lies mainly in the first load of the runtime (a WASM module of approximately several MB); once initialization is complete, font operation speed is comparable to native Python.
50%UnverifiedPyodide is an open-source project initiated by Mozilla in 2019 that compiles the CPython interpreter and the scientific computing ecosystem into WebAssembly bytecode to run in a browser sandbox.
50%UnverifiedThe credited authors of the Cloudflare Python Workers release announcement include Gyeongjae Choi, Dominik Picheta, and Hood Chatham, with both Gyeongjae and Hood being core maintainers of the Pyodide project.
50%UnverifiedPyodide compiles the CPython interpreter and commonly used C extension libraries into WebAssembly binaries via the Emscripten toolchain.
50%UnverifiedPyodide was originally initiated by Mozilla in 2018, with the goal of enabling Python's data science ecosystem to run directly in the browser.
50%UnverifiedCloudflare compiles Python to WebAssembly via Pyodide, running it inside its V8-based open-source runtime workerd, rather than directly embedding the traditional CPython interpreter.
50%UnverifiedEdge runtime support for Python typically relies on Pyodide — a project that compiles the CPython interpreter to WebAssembly
50%UnverifiedThe author created the datasette/pysqlite3-wasm-wheels repository, providing WebAssembly-compiled pysqlite3 wheels for 163 different SQLite versions; when a ?sqlite= version number is passed, Datasette Lite resolves the corresponding wheel path, downloads it, and installs it into the Pyodide environment.
50%UnverifiedPEP 783 is a proposal being advanced by the Python community that aims to establish a standard binary wheel distribution format and PyPI publishing specification for WebAssembly platforms (such as Pyodide and PyScript), so that packages containing C extensions can be installed in browser environments like ordinary wheels.
50%