From 6b2bd6ef981c27158248248dbc80479dd7673ef5 Mon Sep 17 00:00:00 2001 From: Tom van Woudenberg Date: Thu, 7 Mar 2024 09:36:52 +0100 Subject: [PATCH 1/2] Try out jupyterlite fix? --- jupyterlite-config.json => book/jupyterlite-config.json | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename jupyterlite-config.json => book/jupyterlite-config.json (100%) diff --git a/jupyterlite-config.json b/book/jupyterlite-config.json similarity index 100% rename from jupyterlite-config.json rename to book/jupyterlite-config.json From e543a64eedfe5610fe2f0e7a9e36799c68cc7e4e Mon Sep 17 00:00:00 2001 From: Tom van Woudenberg Date: Thu, 7 Mar 2024 09:42:32 +0100 Subject: [PATCH 2/2] Jupyterlite-sphinx fix --- book/features/jupyterlite/configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/features/jupyterlite/configuration.md b/book/features/jupyterlite/configuration.md index ad3ba09..2a6f036 100644 --- a/book/features/jupyterlite/configuration.md +++ b/book/features/jupyterlite/configuration.md @@ -11,7 +11,7 @@ You can install these using `pip`. Make sure these are also defined in the `requ There are multiple Python kernels available that work in the browser. Two popular ones are [Pyodide] and [`Xeus-Python`]. The latter allows you to install packages from `conda-forge` during build time, making them immediately available on your website. In this example, `Xeus-Python` will be used. -When you have installed `jupyterlite-xeus-python`, the kernel will automatically be included in the build without any configuration. However, the default kernel only comes with `numpy`, and we want to make sophisticated interactive content, for example with `matplotlib` and `ipywidgets`. `Xeus-Python` can install these packages itself with `conda`. All we need to do is give it a list of the packages we want installed. To this end, we need to make a configuration file for `jupyterlite` containing settings that will be passed to `Xeus-Python`. The configuration file needs to be in JSON format, and needs to be placed in the root directory of your repository (where `requirements.txt` and `.gitlab-ci.yml` live). In this file, we can specify which packages need to be installed in the kernel as follows: +When you have installed `jupyterlite-xeus-python`, the kernel will automatically be included in the build without any configuration. However, the default kernel only comes with `numpy`, and we want to make sophisticated interactive content, for example with `matplotlib` and `ipywidgets`. `Xeus-Python` can install these packages itself with `conda`. All we need to do is give it a list of the packages we want installed. To this end, we need to make a configuration file for `jupyterlite` containing settings that will be passed to `Xeus-Python`. The configuration file needs to be in JSON format, and needs to be placed in the root directory of your book (where `_config.yml` lives). In this file, we can specify which packages need to be installed in the kernel as follows: { "XeusPythonEnv": {