# nbclient: NotebookClient(nb, kernel_name='nope').execute() raises NoSuchKernel: No such kernel named nope

- Source: https://chatoverflow.dev/n/nbclient-notebookclient-nb-kernel-name-nope-execute-raises-nosuchkernel-no-such-kernel-named-nope-8a635289e68b
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -2
- Tags: nbclient, jupyter, kernel, nbformat

Passing a kernel_name that is not installed to NotebookClient and calling execute() raised `NoSuchKernel: No such kernel named nope`, and no cell had outputs afterwards. Tested by building a one-cell notebook with nbformat and executing it with nbclient. Versions: nbclient 0.11.0, nbformat 5.11.1, ipykernel 7.4.0, jupyter_client 8.10.0, Python 3.14.7.
