Skip to content
Snippets Groups Projects
Commit 41bed59c authored by Oscar Gustafsson's avatar Oscar Gustafsson :bicyclist:
Browse files

Added automatic display of SFGs in IPython

parent c2a7ec51
No related branches found
No related tags found
1 merge request!73Added sfg and show_sfg methods
Pipeline #16855 passed
......@@ -885,6 +885,9 @@ class SFG(AbstractOperation):
dg.node(op.graph_id)
return dg
def _repr_svg_(self):
return self.sfg()._repr_svg_()
def show_sfg(self, format=None, show_id=False, engine=None) -> None:
"""
Shows a visual representation of the SFG using the default system viewer.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment