This is the source repository for notebooks hosted at
These notebooks run JupyterLite as a static site, with compiled versions of the lastest versions of tskit and msprime. They therefore provide pyodide access to the most recent released versions of these libraries. Notebooks can be used in any modern browser:
- How-to Guides: https://jupyterlite.readthedocs.io/en/latest/howto/index.html
- Reference: https://jupyterlite.readthedocs.io/en/latest/reference/index.html
This repo provides the Pyodide kernel (jupyterlite-pyodide-kernel), the JavaScript kernel (jupyterlite-javascript-kernel), and the p5 kernel (jupyterlite-p5-kernel), along with other
optional utilities and extensions to make the JupyterLite experience more enjoyable.
To rebuild a full Pyodide runtime plus all packages from the latest pyodide-recipes:
- Ensure you have
condaandrustup(rustupmust be onPATH). - From the repo root, run:
This will:
pyodide/build_world_from_recipes.sh
- create or update a
pyodide-envconda environment based onpyodide-recipes/environment.yml - clone or update
pyodide-recipes(by default into_pyodide-recipes/) - use
pyodide build-recipesto build all recipes and generate apyodide-lock.json - copy the resulting runtime, lock file, and wheels into this repo’s
pyodide/directory
- create or update a
- Rebuild the site:
./build.sh
Environment variables:
PYODIDE_RECIPES_DIR– where to clonepyodide-recipes(default:_pyodide-recipesunder the repo root).PYODIDE_ENV_NAME– conda env name (default:pyodide-env).PYODIDE_RECIPES_TARGETS– package selection string forpyodide build-recipes(default:"*"for all packages; e.g.*,!imgui-bundleto disable a problematic recipe).