Replies: 1 comment
-
From Using IPython extension (recommended)In [1]: %load_ext kedro.extras.extensions.ipython
In [2]: %reload_kedro <path_to_project_root> Documention: https://kedro.readthedocs.io/en/latest/11_tools_integration/02_ipython.html#ipython-extension Using manual activation scriptfrom pathlib import Path
from kedro.framework.session import KedroSession
from kedro.framework.startup import bootstrap_project
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
bootstrap_project(project_path)
session = KedroSession.create("<your-kedro-project-package-name>", project_path) ### ppr is the name of the package
_activate_session(session)
context = session.load_context() with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I manually launch Jupyter Notebok and don't use
kedro jupyter
orkedro jupyter lab
command, how do I access Kedro-related variables, e.g.context,
catalog`, etc., in my notebook?Beta Was this translation helpful? Give feedback.
All reactions