Inject run parameters via pipelines to notebooks #2921
Replies: 4 comments 2 replies
-
The only supported means to perform customization for generic nodes is through the use of environment variables, which notebooks and scripts can evaluate. However environment variables values can currently only be set prior to pipeline submission through the Elyra pipeline editor, but not the |
Beta Was this translation helpful? Give feedback.
-
Got it. Could I make it work with Kubeflow based nodes/components? |
Beta Was this translation helpful? Give feedback.
-
Unfortunately not through environment variables because the pipeline editor currently does not expose them as a settable node property. The reasoning is that in a way using environment variables to pass data (in the general sense) to a component would be a bad practice because the fact that they impact the component behavior isn't explicitly captured in the component specification. Could you elaborate bit on your scenario? Is your goal to submit/export the pipeline once from Elyra and then re-run it (as required) through the run wizard in the Kubeflow Central dashboard? |
Beta Was this translation helpful? Give feedback.
-
I started doing the support for this a long time ago, but was interrupted and moved away to other priorities, in any case see my old branch as it might inspire you on where the code needs to be changed --> https://github.com/lresende/elyra/commits/dev-parameter NOT A CONTRIBUTION |
Beta Was this translation helpful? Give feedback.
-
Hi I am trying to build kubeflow pipelines using Elyria and I would like to inject Run Parameters during kubeflow run something like below
Is it possible to inject such parameters via the Elyria pipelines into to the notebooks, papermill does inject parameters into notebook by adding
parameters
tag at the notebook cell level let me know how this can be doneBeta Was this translation helpful? Give feedback.
All reactions