marrrcin
09/07/2023, 1:00 PMload_context
is not available anymore in the recent versions of Kedro (I believe it was removed in 0.18.0). Use after_context_created
hook instead. https://docs.kedro.org/en/stable/hooks/introduction.html#hook-specificationEluard Camota
09/07/2023, 1:07 PMmarrrcin
09/07/2023, 1:40 PMfrom kedro.framework.session import KedroSession
from kedro.framework.startup import bootstrap_project
from pathlib import Path
# If you are creating a session outside of a Kedro project (i.e. not using
# `kedro run` or `kedro jupyter`), you need to run `bootstrap_project` to
# let Kedro find your configuration.
bootstrap_project(Path("<project_root>"))
with KedroSession.create() as session:
session.run()
https://docs.kedro.org/en/stable/kedro.framework.session.session.KedroSession.htmlcreate()
and run()
have some cool arguments you can set at runtime from your streamlit appEluard Camota
09/07/2023, 2:03 PM