Skip to content

DM-51011: Enhance kernel execution handling#121

Merged
jonathansick merged 7 commits intomainfrom
tickets/DM-51011
May 22, 2025
Merged

DM-51011: Enhance kernel execution handling#121
jonathansick merged 7 commits intomainfrom
tickets/DM-51011

Conversation

@jonathansick
Copy link
Copy Markdown
Member

Noteburst now sets the X-Kernel-Name header in the notebook execution request with the /rubin/execution endpoint to the JupyterLab server. This fixes a long-standing issue where the kernel name specified by the user in the POST /noteburst/v1/notebook request was not being used by the JupyterLab server. This caused the notebook to execute with the default kernel (which may be python3 rather than lsst), or with the kernel named by the kernelspec metadata in the notebook.

Related to lsst-sqre/rsp-jupyter-extensions#48

The updated rsp-jupyter-extensions's execution handler now accepts an
X-Kernel-Name header to suggest the kernel to nbconvert. We can finally
pass the kernel_name argument through to the /execution endpoint!
@jonathansick jonathansick changed the title Update dependencies and enhance kernel execution handling DM-51011: Enhance kernel execution handling May 21, 2025
With Annotated, we should set the default this way rather than through

The kernel name is lowercase, rather than the upper case display name.
@jonathansick jonathansick marked this pull request as ready for review May 21, 2025 18:34
@jonathansick jonathansick merged commit ba796fe into main May 22, 2025
4 checks passed
@jonathansick jonathansick deleted the tickets/DM-51011 branch May 22, 2025 15:19
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