Juan Luis
03/09/2023, 12:24 PMopenrepair-0_3-events-raw:
type: polars.CSVDataSet
filepath: data/01_raw/OpenRepairData_v0.3_aggregate_202210.csv
but if I try to load the data from a notebook in notebooks/ with this code:
conf_loader = ConfigLoader("../conf")
conf_catalog = conf_loader.get("catalog.yml")
catalog = DataCatalog.from_config(conf_catalog)
catalog.load("openrepair-0_3-events-raw")
then I get a "file not found" error. however, if I change the filepath: to ../data/... or I move the notebook one directory up or if I use the kedro.ipython extension, the error goes away.
my aim is to show how to gradually move from non-Kedro to Kedro, and as an intermediate stage, I'm loading the catalog manually. I suppose there's some extra magic happening under the hood that properly resolves the paths?datajoely
03/09/2023, 12:28 PMbootstrap_package()datajoely
03/09/2023, 12:29 PMpyproject.toml and situate your project properly in terms of src location and PYTHONPATH tuffdatajoely
03/09/2023, 12:29 PMJuan Luis
03/09/2023, 12:36 PM