From 41bed59c00388c9c6588f5c44fc903e1c5fcb354 Mon Sep 17 00:00:00 2001 From: Oscar Gustafsson <oscar.gustafsson@gmail.com> Date: Mon, 8 Jun 2020 12:22:33 +0200 Subject: [PATCH] Added automatic display of SFGs in IPython --- b_asic/signal_flow_graph.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/b_asic/signal_flow_graph.py b/b_asic/signal_flow_graph.py index ef41e1a5..3e6254d4 100644 --- a/b_asic/signal_flow_graph.py +++ b/b_asic/signal_flow_graph.py @@ -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. -- GitLab