https://kedro.org/ logo
#questions
Title
# questions
m

Maren Eckhoff

10/14/2022, 6:17 PM
Hi team, is it possible to pass a constant into a kedro node? Something like this:
Copy code
node(my_fun, 
inputs = {input_data: my_data, input_params: params:my_params, constant: 4}
outputs = output_data})
d

Deepyaman Datta

10/17/2022, 4:14 AM
No, it needs to be a parameter, or you can define your function as a partial with that parameter specified. IIRC Kiyo previously experimented with being able to allow constants to be passed, but it never made it.