A Python kernel for JupyterLite powered by Pyodide,
python >=3.10
| status | jupyterlite-pyodide-kernel | jupyterlite-core | jupyterlab | notebook | retrolab |
|---|---|---|---|---|---|
| alpha | 0.8.* | >=0.8.0a0,<0.9 | >=4.6.0a0,<4.7 | >=7.6.0a0,<7.7 | - |
| stable | 0.7.* | >=0.7,<0.8 | >=4.5.0,<4.6 | >=7.5.0,<7.6 | - |
| stable | 0.6.* | >=0.6,<0.7 | >=4.4.3,<4.5 | >=7.4.3,<7.5 | - |
| stable | 0.5.* | >=0.5,<0.6 | >=4.3.0,<4.4 | >=7.3.0,<7.4 | - |
| stable | 0.4.* | >=0.4,<0.5 | >=4.2.0,<4.3 | >=7.2.0,<7.3 | - |
| stable | 0.3.* | >=0.3,<0.4 | >=4.1.1,<4.2 | >=7.1.0,<7.2 | - |
| stable | 0.2.* | >=0.2,<0.3 | >=4.0.7,<4.1 | >=7.0.5,<8 | - |
| stable | 0.1.* | >=0.1,<0.2 | >=3.5,<3.6 | - | >=0.3,<0.4 |
Installing the matching version of JupyterLab with your package manager can help ensure matching labextension assets and kernel dependencies, even though this kernel does not yet work in a full, jupyter_server-hosted client such as JupyterLab or Notebook.
jupyterlite-pyodide-kernel | pyodide | python | emscripten |
|---|---|---|---|
>=0.1.0,<=0.1.1 | 0.23.* | 3.10.* | 3.1.29 |
>=0.1.2,<=0.2.1 | 0.24.* | 3.10.* | 3.1.45 |
>=0.2.2,<=0.2.3 | 0.25.* | 3.11.* | 3.1.46 |
>=0.3.*,<=0.4.0 | 0.25.* | 3.11.* | 3.1.46 |
>=0.4.*,<=0.4.6 | 0.26.* | 3.12.* | 3.1.58 |
>=0.4.7,<=0.5.0 | 0.27.* | 3.12.* | 3.1.58 |
>=0.5.0,<=0.6.0 | 0.27.* | 3.12.* | 3.1.58 |
>=0.6.0,<=0.7.0 | 0.27.* | 3.12.* | 3.1.58 |
>=0.7.0,<=0.8.0 | 0.29.* | 3.13.* | 4.0.9 |
Note that the Emscripten version is strict down to the bugfix version.
To install the Pyodide kernel labextension and the CLI addons for jupyter lite, run:
pip install jupyterlite-pyodide-kernelor with conda, mamba, micromamba, etc.
conda install -c conda-forge jupyterlite-pyodide-kernelFor more options see the development install or contributing guide.
Build a JupyterLite site:
jupyter lite buildSome new CLI options are also available:
jupyter lite --helpThis should show something like this:
--piplite-wheels=<typedtuple-item-1>... Local paths or URLs of piplite-compatible wheels to copy and index Default: () Equivalent to: [--PipliteAddon.piplite_urls] --pyodide=<Unicode> Local path or URL of a pyodide distribution tarball Default: '' Equivalent to: [--PyodideAddon.pyodide_url]To remove the extension, run:
pip uninstall jupyterlite-pyodide-kernel # or however you installed itTo install pre-release versions with pip:
pip install --upgrade --pre jupyterlite-pyodide-kernelOr, similarly for the conda ecosystem, for alpha packages:
conda install \ -c conda-forge/label/jupyterlite_core_alpha \ -c conda-forge/label/jupyterlite_pyodide_kernel_alpha \ -c conda-forge \ jupyterlite-pyodide-kernelNote:
_betaand_rcpackages would follow a similar channel naming convention
Below is an short overview of getting up and running quickly. Please see the contributing guide for full details.
Recommended a Python virtual environment provided by a tool of choice, e.g. one of:
virtualenvmambaconda
Ensure the local development environment has:
gitnodejs 20python >=3.8
git clone https://github.com/jupyterlite/pyodide-kernel cd pyodide-kernel npm run quickstartThen, serve the built demo site, documentation, and test reports with Python's built-in HTTP server:
jlpm serve