nteract/papermill

Injecting `pm` parameters breaks.

Open

#640 创建于 2021年11月8日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)Python (402 fork)batch import
bughelp wanted

仓库指标

Star
 (5,381 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

🐛 Bug

This works nicely for injecting params into the output_path (output name).

papermill template.ipynb analysis_{PARAM}.ipynb -p PARAM test_stuff

however, using pm['run_uuid'] breaks as does pm["run_uuid"] and pm[run_uuid]. It seems that python doesn't allow access to the pm object values in the "".format() syntax.

papermill template.ipynb analysis_{pm['run_uuid']}.ipynb

using pm alone works and prints the entire pm dict in the notebook output name, but it very messy!

See here for more info: https://github.com/nteract/papermill/pull/343

贡献者指南