provenance
provenance copied to clipboard
AttributeError: 'Digraph' object has no attribute '_repr_svg_'
Dear developers,
We want to integrate provenance library to our workflow and tried the example code provided on https://provenance.readthedocs.io/en/latest/intro-guide.html. We are encountering an error with the provenance.vis package.
vis.visualize_lineage(result)
File /usr/local/lib/python3.10/site-packages/IPython/core/formatters.py:342, in BaseFormatter.__call__(self, obj)
340 method = get_real_method(obj, self.print_method)
341 if method is not None:
--> 342 return method()
343 return None
344 else:
File /usr/local/lib/python3.10/site-packages/provenance/vis/utils.py:73, in DigraphDicts._repr_svg_(self)
72 def _repr_svg_(self):
---> 73 return self.to_dot()._repr_svg_()
AttributeError: 'Digraph' object has no attribute '_repr_svg_'
Could you guide us through this error?
Also, is there a way to save the visualisation image as png/pdf?
Kind regards, Mahnoor