Downloading and deploying Pyodide#

Downloading Pyodide#

CDN#

Pyodide is available from the JsDelivr CDN

channel

indexURL

Comments

REPL

Latest release

https://cdn.jsdelivr.net/pyodide/dev/full/

Recommended, cached by the browser

link

Dev (main branch)

https://cdn.jsdelivr.net/pyodide/dev/full/

Re-deployed for each commit on main, no browser caching, should only be used for testing

link

Warning

The previous CDN pyodide-cdn2.iodide.io is deprecated and should not be used.

GitHub releases#

You can also download Pyodide packages from GitHub releases (the pyodide-build-*.tar.bz2 file).

You will need to serve these files yourself.

Serving Pyodide packages#

Serving locally#

With Python 3.7.5+ you can serve Pyodide files locally with http.server:

python -m http.server

from the Pyodide distribution folder. Navigate to http://localhost:8000/console.html and the Pyodide repl should load.

Remote deployments#

Any service that hosts static files and that correctly sets the WASM MIME type and CORS headers will work. For instance, you can use GitHub Pages or similar services.

For additional suggestions for optimizing the size and load time for Pyodide, see the Emscripten documentation about deployments.