xeus kernels in JupyterLite 🚀🪐#
jupyterlite-xeus is a facility tool bringing xeus kernels into JupyterLite and Voici.
Currently supported kernels are:
We are also working on bringing xeus-cpp and xeus-r into jupyterlite, stay tuned!
Try it here!
Installation#
You can install jupyterlite-xeus
with conda/mamba
mamba install -c conda-forge jupyterlite-xeus
Or with pip
:
pip install jupyterlite-xeus
Usage#
Once installed, you can create an environment.yml
file at the root of your jupyterlite build directory containing the following:
name: xeus-kernels
channels:
- https://repo.mamba.pm/emscripten-forge
- conda-forge
dependencies:
- xeus-python
- xeus-lua
- xeus-nelson
- numpy
- matplotlib
- pillow
- ipywidgets
- pip:
- ipycanvas
You can then run the usual jupyter lite build
or voici my-notebook.ipynb
. The environment.yml
file will be picked-up automatically by jupyterlite-xeus
, installing xeus-python
, xeus-lua
, xeus-nelson
and some useful Python packages into the user environment.