nteract/papermill

Injecting `pm` parameters breaks.

Aberta

#640 aberto em 8 de nov. de 2021

 (1 comentário) (0 reação) (0 responsável)Python (402 forks)batch import
bughelp wanted

Métricas do repositório

Stars
 (5.381 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

🐛 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

Guia do colaborador