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

Beatriz Passanezi

10/04/2023, 2:27 PM
Hi everyone! Is there a way to access the parameters inside the code but outside a node? I want to create a pipeline programatically based on parameters that are considered in the yaml I used to use
Copy code
from kedro.framework.session import get_current_session
context = get_current_session().load_context()
params = context.params
but it doesn't work in most recent kedro versions 😕
d

datajoely

10/04/2023, 2:44 PM
we don’t really recommend this
I think a hook would be the right way