Hi, is there any way to display layer_names to mem...
# questions
y
Hi, is there any way to display layer_names to memorydataset via kedro viz? Something like info.processed: type: io.MemoryDataset metadata: kedro-viz: layer: processing
👀 1
r
Copy code
info.processed:
    type: MemoryDataset
    metadata:
     kedro-viz:
      layer: test
This should work
🥳 1
y
Yep! It worked, thanks. The "io." is not needed. But how is it done with custom datasets? In kedro viz it's always displayed as MemoryDataset and it won't accept the layer name. 😕 But as soon as I switch info: type: workloadcalculation.datasets.pics_dataset.PICS_Dataset filepath: "data/08_reporting/pics" <<: *reporting_layer to info: type: pandas.CSVDataset filepath: "data/08_reporting/pics" <<: *reporting_layer it does work
👀 1
r
I did not quite understand the issue here. If your CustomDataset has a metadata attribute, this should work. That is where KedroViz pulls layer info from
👀 1
You can look at csv_dataset - https://docs.kedro.org/projects/kedro-datasets/en/kedro-datasets-8.0.0/api/kedro_datasets/pandas.CSVDataset/ for how metadata is assigned. Let me know if this helps
n
@Yanni Does your custom dataset accept the
metadata
field?
y
Hi thank you! Using the metadata fiel helped definitely