From 2c06a903857cecdbaaeba8cab7589c8cef8fdb0b Mon Sep 17 00:00:00 2001 From: Samraat Pawar Date: Sun, 4 Oct 2026 23:29:32 +0100 Subject: [PATCH 1/4] ci: expose Jupyter to R kernel setup --- .github/workflows/deploy-book.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy-book.yml b/.github/workflows/deploy-book.yml index 52059e4b..11a5358d 100644 --- a/.github/workflows/deploy-book.yml +++ b/.github/workflows/deploy-book.yml @@ -51,6 +51,7 @@ jobs: env: CRAN_REPO: https://packagemanager.posit.co/cran/__linux__/noble/2026-10-01 run: | + . .venv/bin/activate Rscript -e 'options(repos = c(CRAN = Sys.getenv("CRAN_REPO"))); install.packages(readLines("requirements-r.txt"))' Rscript -e 'IRkernel::installspec(name = "ir", displayname = "R", user = TRUE)' From c89c8aeaf92024df6259c9f6fc5acceee683999a Mon Sep 17 00:00:00 2001 From: Samraat Pawar Date: Sun, 4 Oct 2026 23:36:14 +0100 Subject: [PATCH 2/4] ci: register R kernel with Jupyter directly --- .github/workflows/deploy-book.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-book.yml b/.github/workflows/deploy-book.yml index 11a5358d..b3d88345 100644 --- a/.github/workflows/deploy-book.yml +++ b/.github/workflows/deploy-book.yml @@ -53,7 +53,8 @@ jobs: run: | . .venv/bin/activate Rscript -e 'options(repos = c(CRAN = Sys.getenv("CRAN_REPO"))); install.packages(readLines("requirements-r.txt"))' - Rscript -e 'IRkernel::installspec(name = "ir", displayname = "R", user = TRUE)' + ir_kernel_spec=$(Rscript -e 'cat(system.file("kernelspec", package = "IRkernel"))') + jupyter kernelspec install --user --replace --name ir "$ir_kernel_spec" - name: Verify notebook kernels run: | From 602c45f0aed089a3b046c706dd2de63c2a19b41b Mon Sep 17 00:00:00 2001 From: Samraat Pawar Date: Sun, 4 Oct 2026 23:43:33 +0100 Subject: [PATCH 3/4] ci: avoid stdlib shadowing during notebook build --- .github/workflows/deploy-book.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-book.yml b/.github/workflows/deploy-book.yml index b3d88345..ee7c9850 100644 --- a/.github/workflows/deploy-book.yml +++ b/.github/workflows/deploy-book.yml @@ -95,7 +95,7 @@ jobs: env: MQB_NOTEBOOK_REPOSITORY: ${{ github.event.pull_request.head.repo.full_name || github.repository }} MQB_NOTEBOOK_REF: ${{ github.event.pull_request.head.sha || github.sha }} - run: PYTHONPATH="$GITHUB_WORKSPACE:$GITHUB_WORKSPACE/content/code" make test BOOK_CONFIG=content/_config_ci.yml BOOK_BUILD_ARGS=--all + run: PYTHONPATH="$GITHUB_WORKSPACE" make test BOOK_CONFIG=content/_config_ci.yml BOOK_BUILD_ARGS=--all - name: Upload built book uses: actions/upload-artifact@v7 From fe9c6ea8f369c901545031b2e06c4d85131768d6 Mon Sep 17 00:00:00 2001 From: Samraat Pawar Date: Sun, 4 Oct 2026 23:49:16 +0100 Subject: [PATCH 4/4] docs: use standard NaN in pandas example --- content/notebooks/appendix-data-python.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/notebooks/appendix-data-python.ipynb b/content/notebooks/appendix-data-python.ipynb index 581ed10f..04930ae5 100755 --- a/content/notebooks/appendix-data-python.ipynb +++ b/content/notebooks/appendix-data-python.ipynb @@ -244,7 +244,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -306,7 +306,7 @@ "MyDF = pd.DataFrame({\n", " 'col1': ['Var1', 'Var2', 'Var3', 'Var4'],\n", " 'col2': ['Grass', 'rabbit', 'Fox', 'Wolf'],\n", - " 'col3': [1, 2, sc.nan, 4]\n", + " 'col3': [1, 2, float('nan'), 4]\n", "})\n", "\n", "MyDF"