Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'Digraph' object has no attribute '_repr_svg_' #73

Open
zmahnoor14 opened this issue Dec 5, 2022 · 0 comments
Open

Comments

@zmahnoor14
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant