nteract/papermill

`--help-notebook` does not respect `--kernel` CLI argument

オープン

#905 opened on 2026/08/10

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Python (402 件のフォーク)batch import
bughelp wanted

Repository metrics

Stars
 (5,381 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

🐛 Bug

It seems that papermill --help-notebook ignores the --kernel option. Papermill version 2.7.0

$ papermill --help-notebook --kernel uvkernel papermill-test.ipynb
Usage: papermill [OPTIONS] NOTEBOOK_PATH [OUTPUT_PATH]

Parameters inferred for notebook 'papermill-test.ipynb':
Traceback (most recent call last):
  File "/Users/voipiti/Documents/repos/minerva-optimization/ui-job-launch/python-papermill-test-script/.venv/bin/papermill", line 10, in <module>
    sys.exit(papermill())
             ~~~~~~~~~^^
<cut>
  File "<censored>/python-papermill-test-script/.venv/lib/python3.14/site-packages/papermill/utils.py", line 52, in nb_kernel_name
    raise ValueError("No kernel name found in notebook and no override provided.")
ValueError: No kernel name found in notebook and no override provided.

Omitting --help-notebook but retaining the --kernel uvkernel option results in successful run of Papermill and produces the expected output.

jupyter kernelspec list shows that uvkernel is a recognized kernel.

コントリビューターガイド