https://kedro.org/ logo
Title
d

Dhaval

03/28/2022, 7:43 PM
@User I have just used the code available on Kedro Lifecycle management from the docs It can be found here : https://kedro.readthedocs.io/en/stable/04_kedro_project_setup/03_session.html?highlight=load_context#create-a-session
from kedro.framework.session import KedroSession
from kedro.framework.startup import bootstrap_project
from pathlib import Path

metadata = bootstrap_project(Path.cwd())
with KedroSession.create(metadata.package_name) as session:
    context = session.load_context()