Skip to content

tripyrun/papermill: Ignore TemplateNotebook Kernel#217

Merged
patrickscholz merged 1 commit into
FESOM:workbenchfrom
alxthor:workbench
Apr 22, 2026
Merged

tripyrun/papermill: Ignore TemplateNotebook Kernel#217
patrickscholz merged 1 commit into
FESOM:workbenchfrom
alxthor:workbench

Conversation

@alxthor
Copy link
Copy Markdown
Contributor

@alxthor alxthor commented Apr 21, 2026

Use default Kernel "python3" instead.

This should fix issues like Unexpected Error: No such kernel named py39_new when running tripyrun.
Error was raised as papermill by default tries executing the notebooks using the kernel specified in the notebook metadata.

This fix tells papermill to use the Kernel called "python3" and ignore notebook metadata.

Details:
Once any conda environment is activated it seems that the kernel "python3" is associated with the activated conda environment independent of the name of the conda environment.

Only if no environment is activated "python3" is the name of the kernel associated with the default e.g. Levante python env.

This can be verified by running jupyter kernelspec list (before/after activating conda env)

Only tested on Levante with python 3.12

Use default Kernel "python3" instead.

This should fix issues like `Unexpected Error: No such kernel named
py39_new` when running tripyrun.
Error was raised as papermill by default tries executing the notebooks
using the kernel specified in the notebook metadata.

This fix tells papermill to use the Kernel called "python3" and ignore
notebook metadata.

Details:
Once any conda environment is activated it seems that the kernel
"python3" is associated with the activated conda environment independent
of the name of the conda environment.

Only if no environment is activated "python3" is the name of the kernel
associated with the default e.g. Levante python env.

This can be verified by running `jupyter kernelspec list`

Only tested on Levante with python 3.12
@patrickscholz patrickscholz merged commit 6e8e8b2 into FESOM:workbench Apr 22, 2026
4 checks passed
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.

2 participants