Can parameters be used with the imperative api? On...
# ask-community
d
Can parameters be used with the imperative api? Only see reference in the docs to their use with the functional api.
c
Hey @David Haines! Yes, for example:
Copy code
p = Parameter("my-param")

flow = Flow("example")

my_task.set_upstream(p, flow=flow, key="p")
where
key
is the name of the keyword argument that
my_task
accepts
d
Works a treat. Thank you @Chris White.
👏 1
c
awesome - anytime!
j
@Marvin archive “How to use parameters with the imperative API”