How should we use the new MatplotlibDataset as Mat...
# questions
s
How should we use the new MatplotlibDataset as MatplotlibWriter is being deprecated? I keep getting this error:
Copy code
DatasetError: 
Class 'kedro_datasets.matplotlib.MatplotlibDataset' not found, is this a typo?
'kedro_mlflow.io.artifacts.mlflow_artifact_dataset.MlflowArtifactDataset'.
Env config:
Copy code
name         : kedro-datasets                                                       
 version      : 6.0.0                                                                
 description  : Kedro-Datasets is where you can find all of Kedro's data connectors. 

dependencies
 - kedro >=0.19.7
 - lazy_loader *
 - matplotlib >=3.0.3,<4.0

required by
 - kedro-mlflow requires *
My catalog entry:
Copy code
"{namespace}.mlflow_confusion_matrix":
  type: kedro_datasets.matplotlib.MatplotlibDataset
  filepath: mlflow_artifacts/confusion_matrix.png
👀 2
h
Someone will reply to you shortly. In the meantime, this might help:
r
Hi Shubham, you should be able to use
MatplotlibWriter
for now. In next release of
kedro-datasets
i.e., 7.0.0 you should be able to use
MatplotlibDataset
👍 1
MatplotlibDataset
is scheduled for `kedro-datasets`7.0.0 release
👍 1
s
Thanks Ravi. I guess that's why there's no official doc regarding MatplotlibDataset in kedro-docs.
👍 1
r
it is actually just a name change. It will be updated in the new kedro-docs.