Skip to content

Commit

Permalink
Improve plotting of graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
pablormier committed May 9, 2024
1 parent c51ebc4 commit 3ed5da6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions corneto/_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,8 @@ def prune(
def plot(self, **kwargs):
Gv = self.to_graphviz(**kwargs)
try:
# Check if the object is able to produce a MIME bundle
Gv._repr_mimebundle_()
return Gv
except Exception as e:
from corneto._settings import LOGGER
Expand Down

0 comments on commit 3ed5da6

Please sign in to comment.