Jonghyun Yun
05/23/2024, 5:34 PMkedro run --params=.....
?Artur Dobrogowski
05/23/2024, 5:46 PMruntime_params
argument like before_pipeline_run
- you can catch them and print them thereArtur Dobrogowski
05/23/2024, 5:47 PMJonghyun Yun
05/23/2024, 10:58 PMfrom kedro.config import OmegaConfigLoader
import yaml
CONF_SOURCE = "conf"
conf_loader = OmegaConfigLoader(conf_source=CONF_SOURCE, env="local")
conf_params = conf_loader["parameters"]
print(yaml.dump(conf_params))
Merel
05/24/2024, 7:09 AM@hook_impl
def before_pipeline_run(
self, run_params: dict[str, Any], pipeline: Pipeline, catalog: DataCatalog
) -> None:
print(run_params)
Jonghyun Yun
05/24/2024, 5:14 PMArtur Dobrogowski
05/24/2024, 5:17 PMArtur Dobrogowski
05/24/2024, 5:37 PMOmegaConfigLoader
class gets runtime_params
filled and stores them, so you can access it when you get access to KedroContext
, as it refers to config_loader
instance. You can use that in unit tests/jupyter notebooks/kedro plugins where you have kedro context access.Jonghyun Yun
05/24/2024, 10:40 PM