datajoely
07/27/2021, 10:47 AMfrom pathlib import Path
from kedro.framework.session import KedroSession
from kedro.framework.session.session import _activate_session
current_dir = Path.cwd() # this points to 'notebooks/' folder
project_path = current_dir.parent # point back to the root of the project
session = KedroSession.create("<your-kedro-project-package-name>", project_path)
_activate_session(session)
context = session.load_context()