diff --git a/corneto/_graph.py b/corneto/_graph.py index f7f3c12..063c68b 100644 --- a/corneto/_graph.py +++ b/corneto/_graph.py @@ -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