Hey everyone, What is the best way to retrieve ked...
# questions
h
Hey everyone, What is the best way to retrieve kedro params or globals inside
pipeline_registry.py
m
You can't (at least via official ways)
h
@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
get_current_session
is depreciated now, how to get the current session's context otherwise?
m
> 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 🙂
y
@Hadeel Mustafa For globals, not sure what you mean by those, but you can create a
globals.py
file, put them there and import from it in
pipeline_registry.py
? In this context
pipeline_registry.py
is just like any other Python file where you can import anything you want.
h
@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.