Search code examples
ipythonkedro

kedro context and catalog missing from ipython session


I launched ipython session and trying to load a dataset.
I am running
df = catalog.load("test_dataset")
Facing the below error
NameError: name 'catalog' is not defined

I also tried %reload_kedro but got the below error

UsageError: Line magic function `%reload_kedro` not found.

Even not able to load context either. I am running the kedro environment from a Docker container. I am not sure where I am going wrong.


Solution

  • new in 0.17.5 there is a fallback option, please run the following commands in your Jupyter/IPython session:

    %load_ext kedro.extras.extensions.ipython
    %reload_kedro <path_to_project_root>
    

    This should help you get up and running.