What is the best way to retrieve kedro params or globals inside
10/06/2023, 10:53 AM
You can't (at least via official ways)
10/06/2023, 10:57 AM
@marrrcin thanks for your reply.
The problem is that we wanted to move away from jinja templates, and as part of the migration work, there is a parameter used while calling the nodes, so in this case this parameter is inevitable.
what is the best (unofficial way)?
i am aware
is depreciated now, how to get the current session's context otherwise?
10/06/2023, 11:44 AM
> there is a parameter used while calling the nodes
What do you mean by that? Could you describe your use case and what are you trying to achieve? Maybe there’s another way for that 🙂
10/11/2023, 12:52 AM
For globals, not sure what you mean by those, but you can create a
file, put them there and import from it in
? In this context
is just like any other Python file where you can import anything you want.
10/11/2023, 9:12 AM
@Yury Fedotov thank you for the suggestion, this is the approach we are taking now, although we were trying to avoid it as all our parameters/constants defined in kedro parameters.