Pyodide is a Python distribution for the browser and Node.js based on WebAssembly
Go to file
Dexter Chua 3e33d88373
Remove dataLoadPromise in pyodide.js (#1075)
This is not necessary, because postRun is not run until all dependencies
are satisfied.

Since the definition of Module.postRun is slightly modified here, I took
the opportunity to convert it to use async/await.
2021-01-08 17:28:03 +01:00
.circleci Clean up workspace after core-python build (#1045) 2021-01-05 09:47:28 +01:00
.github/workflows Docker image with prebuilt pyodide (#787) 2020-11-08 21:05:38 +01:00
benchmark BLD Don't compile host python (#830) 2020-12-08 00:19:16 +01:00
bin Explicitly use python3 for pyodide_build 2019-01-09 20:56:46 +05:30
cpython Actually generate a sysconfigdata.py (#1044) 2021-01-05 14:14:55 +01:00
docs Add `version` field to pyodide in main.c (#1065) 2021-01-08 11:06:48 +08:00
emsdk git clone --depth 1 emsdk (#1063) 2021-01-07 09:01:25 +01:00
packages API: Remove pyodide.get_completions (#1066) 2021-01-07 22:20:13 +01:00
pyodide_build Fix build error for zlib (#1060) 2021-01-07 10:48:04 +08:00
src Remove dataLoadPromise in pyodide.js (#1075) 2021-01-08 17:28:03 +01:00
tools Install uglifyjs and lessc via npm (#1002) 2021-01-01 23:43:48 +08:00
.clang-format Remove keys from .clang-format 2018-11-13 09:46:24 -05:00
.dockerignore Docker image with prebuilt pyodide (#787) 2020-11-08 21:05:38 +01:00
.editorconfig Fix #71: Upgrade to Python 3.7 2018-09-06 10:56:33 -04:00
.gitignore Remove unused lines from .gitignore (#1036) 2021-01-04 14:36:58 +08:00
.pre-commit-config.yaml Use upstream file packager instead of fork (#991) 2021-01-01 08:48:28 +01:00
.readthedocs.yml Fix documentation build (#939) 2020-12-24 11:39:48 +01:00
CODE-OF-CONDUCT.md DOC/MAINT Use MyST markdown parser in the documentation (#778) 2020-10-30 21:09:25 +01:00
Dockerfile Install uglifyjs and lessc via npm (#1002) 2021-01-01 23:43:48 +08:00
Dockerfile-prebuilt MAINT Reorganize src/ and tests/ folders (#786) 2020-11-09 13:28:02 +01:00
LICENSE Initial commit 2018-02-23 14:21:29 -05:00
Makefile Properly monitor pyodide-py changes (#1071) 2021-01-08 10:18:40 +08:00
Makefile.envs Create script to set emscripten env vars (#1013) 2021-01-03 12:25:14 +01:00
README.md Release 0.16.1 (#950) 2020-12-25 22:05:54 +01:00
conftest.py Refactor conftest.py (#1055) 2021-01-06 23:29:10 +01:00
pyodide_env.sh Create script to set emscripten env vars (#1013) 2021-01-03 12:25:14 +01:00
run_docker MAINT Update pre-built docker version to 0.16.1 (#1068) 2021-01-07 20:30:42 +01:00
setup.cfg MAINT Reorganize src/ and tests/ folders (#786) 2020-11-09 13:28:02 +01:00

README.md

Build Status Documentation Status

The Python scientific stack, compiled to WebAssembly.

What is Pyodide?

Pyodide brings the Python 3.8 runtime to the browser via WebAssembly, along with the Python scientific stack including NumPy, Pandas, Matplotlib, parts of SciPy, and NetworkX. The packages directory lists over 35 packages which are currently available.

Pyodide provides transparent conversion of objects between Javascript and Python. When used inside a browser, Python has full access to the Web APIs.

While closely related to the iodide project, a tool for literate scientific computing and communication for the web, Pyodide goes beyond running in a notebook environment. To maximize the flexibility of the modern web, Pyodide may be used standalone in any context where you want to run Python inside a web browser.

Try Pyodide (no installation needed)

Try the iodide demo notebook or fire up a Python REPL directly in your browser.

For further information, look through the documentation.

Getting Started

Pyodide offers three different ways to get started depending on your needs and technical resources. These include:

  • Use hosted distribution of pyodide: see using pyodide from Javascript documentation.
  • Download a pre-built version from this repository's releases page and serve its contents with a web server.
  • Build Pyodide from source
    • Build natively with make: primarily for Linux users who want to experiment or contribute back to the project.
    • Use a Docker image: recommended for Windows and macOS users and for Linux users who prefer a Debian-based Docker image with the dependencies already installed.

Contributing

Please view the contributing guide for tips on filing issues, making changes, and submitting pull requests.

License

Pyodide uses the Mozilla Public License Version 2.0. See the LICENSE file for more details.