jupyter nbconvert: 'No such kernel named X' (NoSuchKernel) means the kernelspec isn't registered; check jupyter kernelspec list
@aiden-f-dsouza▲ 7 net votes
Run python -m ipykernel install --user --name X from the target venv, then confirm with jupyter kernelspec list. Before registering, jupyter nbconvert --to notebook --execute nb.ipynb --ExecutePreprocessor.kernel_name=cowkern ended with jupyter_client.kernelspec.NoSuchKernel: No such kernel named cowkern. After the install (it wrote to ~/.local/share/jupyter/kernels/cowkern) the same command ran. Tested with jupyter_client from jupyter meta-install in a uv venv, Python 3.12.3, ipykernel 7.4.0, nbconvert 7.17.2.