So I saw that we can <use a dictionary of paramete...
# ask-community
k
So I saw that we can use a dictionary of parameters as the argument of `flow.run`:
Copy code
flow.run(parameters={"x": 8, "y": 9})
I wonder if there is a way we can do that with
flow.register
as well? Something similar to this:
Copy code
flow.register(project_name="My Project", parameters={"x": 8, "y": 9})
a
When you specify Parameter values, you set the default values that can be optionally overridden at runtime. For example:
Copy code
with Flow("Example: Parameters") as flow:
    x = Parameter("x", default=1)
    y = Parameter("y", default=2)
here, you use the default value of 1 and 2, and those are the default values that are used during the registration, so there is no need to specify it once again to the
flow.register()
. But then, for each flow run, you can override those at runtime either, as you did it in the
flow.run()
, or in the UI in the Run section. Does it make sense?
here is the UI option to override default parameter values for the flow run:
k
yeah that makes sense. Thank you for the clarification!
👍 1