Slackbot
07/07/2022, 9:53 PMEduardo
analyze_data.ipynb
twice in your `pipeline.yaml`(but with different names, example name: analyze_data_a
and name: analyze_data_b
) and put different parameters to each task. then, you can execute selectively with ploomber build --partially analyze_data_a
the second option is to have a single instance of analyze_data.ipynb
, you can use an env.yaml
to parametrize the pipeline and then you can switch the parameters at runtime: ploomber build --env-parameter some-value
. Ploomber automatically exposes all the values in the env.yaml
in the CLI, you can see them if you do ploomber build --help
Do any of these options solve the issue?Jess Mankewitz (they/she)
07/07/2022, 10:03 PMJess Mankewitz (they/she)
07/07/2022, 10:04 PMEduardo
Will the partial build leave the filled/injected parameters in place so that I can go through and run all the cells/inspect the results myself?are you referring to the execute notebook (the one that appears in the product section)? If so, yes. the output notebook will contain the injected parameters
Jess Mankewitz (they/she)
07/07/2022, 10:06 PMEduardo
ploomber nb --inject
, but you suggested that before. so maybe im not following (?)Jess Mankewitz (they/she)
07/07/2022, 10:17 PMcompare-adultsVsChildren
and compare-semcor
both use the same underlying R script compare_models.R
(with a name:
argument in the yaml). I’ve parameterized them so that they take in either adultsVsChildren
or semcor
and each target has different upstream tasks (for their different datasets). But right now, when I ploomber nb --inject
I only see the parameters/upstream paths for compare-semcor
. I’d like to be able to ask ploomber to inject the parameters for compare-adultsVsChildren
instead if I want to interact with that dataset in R instead… any ideas?Jess Mankewitz (they/she)
07/07/2022, 10:18 PMEduardo
compare_models.R
appears once in the pipeline. so only the first parameter is injected. We don't have a way to easily achieve what you want, unfortunately, but I think we should. Let me open a PR to describe your problem and get your feedback. it won't be difficult to implement 🙂Jess Mankewitz (they/she)
07/07/2022, 10:25 PMEduardo