ImperialCollegeLondon / virtual_ecosystem

This repository is the home for the codebase for the Virtual Ecosystem project.
https://virtual-ecosystem.readthedocs.io
BSD 3-Clause "New" or "Revised" License
9 stars 1 forks source link

The `vr_python3` kernel is not found on RTD #399

Closed davidorme closed 6 months ago

davidorme commented 6 months ago

Describe the bug

Following on from the fixes in #398, RTD builds are now failing with:

[WARNING] - kernelspec - get_kernel_spec(284) - Kernelspec name vr_python3 cannot be found!
[ERROR] - manager - wrapper(95) - No such kernel named vr_python3

See the notes in docs/source/development/documentation/jupyter_notebooks.md for the rationale for using a specific named kernel.

I think what has happened is that poetry environment handling has changed, so the RTD config now explicitly sets the install environment using READTHEDOCS_VIRTUALENV_PATH but that is no longer registered as an ipykernel under the vr_python3 name. So I think we just need to include the following line from our jupyter_notebooks guide in the RTD build.

poetry run python -m ipykernel install --user --name=vr_python3