Skip to content

Implement compatibility with nb-conda-kernels - #511

Open
xhejtman wants to merge 1 commit into
plmbr:mainfrom
xhejtman:conda-kernels
Open

xhejtman wants to merge 1 commit into
plmbr:mainfrom
xhejtman:conda-kernels

Conversation

@xhejtman

@xhejtman xhejtman commented Oct 3, 2026

Copy link
Copy Markdown

nb_conda_kernels lists kernelspecs from conda environments under its
own names and drops the originals: chatbook becomes
conda-base-chatbook and python3 becomes conda-base-py. Chatbook
assumed Jupyter's plain names. Every cell failed with "Chatbook backend
kernel 'conda-base-py' is not installed", although that was the backend
Settings offered, and a cell whose backend did resolve stayed at [*]
because the frontend did not treat the notebook as a Chatbook.

The Chatbook kernel now lists and starts backend kernels with the
server's kernelspec manager. The server describes that manager (class
and JSON-safe config) in the Chatbook kernel's environment, beside the
execution-mode cap, and the kernel builds the same manager from it.
The server resolves backend names for rule matching with its own
manager.

Chatbook is recognized by kernelspec language rather than name: in the
backend list, the execution-mode cap, the force-off policy, the
frontend's session detection, the backend dropdown, and New Chatbook,
which now opens the installed Chatbook kernelspec. Convert to Chatbook
still writes chatbook as the kernelspec name; JupyterLab falls back
to the only kernelspec in that language when the name is not installed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant