diff --git a/.github/workflows/deploy-book.yml b/.github/workflows/deploy-book.yml index 52059e4b..ee7c9850 100644 --- a/.github/workflows/deploy-book.yml +++ b/.github/workflows/deploy-book.yml @@ -51,8 +51,10 @@ 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)' + 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: | @@ -93,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 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"