Hi all. I've been trying kedro for the past few we...
# questions
m
Hi all. I've been trying kedro for the past few weeks. Everything worked well except for kedro-viz. It doesn't display the previews of the datasets. I followed all the instructions in the doc but nothing worked. Can someone help me to know the reason why it doesn't work ?
d
hi Malek, do you see any error? Could you please explain your case in more details
m
Hi Dmitry. No I don't see any error. On kedro-viz, I can visualize my pipelines but when I click on the datasets I don't see the previews. I have different types of datasets (csv, parquet, matplotlib) and I don't have the preview of any of them. I followed the instructions in the doc concerning the configurations in
catalog.yml
and running
kedro viz build
and
--include-previews
. But it didn't work. This is an example of a dataset in the Data Catalog :
Copy code
preprocessed_bank:
  type: kedro_datasets.pandas.ParquetDataset
  filepath: data/02_intermediate/preprocessed_bank.parquet
  metadata:
    kedro-viz:
      layer: intermediate
      preview: true
r
hey, happy to jump on a quick call to look at your issue.
y
Hi Malek, does the issue stay if you run a pipeline first? I think a requirement for previews to work is that there should be something on disk available to load and preview, for which a pipeline needs to be ran first.
m
Hi Rashida. Yes I would appreciate it, thank you
Hi Yury. Yes, I did run the pipelines first
r
FYI, this has been fixed. Malek was on `kedro-datasets==1.8`` and previews were introduced on
kedro-datasets>=2.0
. So upgrading kedro-datasets fixed the previews