Nik Linnane
05/23/2024, 12:58 PMcatalog.load("df")
but encounter this error
NameError: name 'catalog' is not defined
Nok Lam Chan
05/23/2024, 1:01 PMNok Lam Chan
05/23/2024, 1:03 PMcatalog
don't show up magically, behind the scene it's a IPython extension that push that variable to the notebook.
So the solution is either you start a notebook with kedro jupyter notebook
that register this for you. Or if you are just openning a notebook on instance that you cannot control, use %load_ext kedro.ipython
.
Thecommand launches a notebook with a customised kernel that has been extended to make the following project variables available:kedro jupyter notebook
•(typecatalog
): Data Catalog instance that contains all defined datasets; this is a shortcut forDataCatalog
context.catalog
•(typecontext
): Kedro project context that provides access to Kedro’s library componentsKedroContext
•(typepipelines
): Pipelines defined in your pipeline registrydict[str, Pipeline]
•(typesession
): Kedro session that orchestrates a pipeline runKedroSession
Nik Linnane
05/23/2024, 1:05 PMZhee
05/28/2024, 7:53 AMNok Lam Chan
05/28/2024, 8:50 AM