From f90ef82a327802c8479a64e1fddbf99c805d8d15 Mon Sep 17 00:00:00 2001 From: Florez Ospina Juan Felipe Date: Sun, 22 Jun 2025 15:22:24 +0200 Subject: [PATCH] Comment out dot.view() for compatibility issues running on docker --- workflows/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/workflows/utils.py b/workflows/utils.py index e1f4596..12bb648 100644 --- a/workflows/utils.py +++ b/workflows/utils.py @@ -140,6 +140,7 @@ def plot_workflow_graph(yaml_file_path, dot = Digraph(format=output_format) dot.attr(rankdir='LR') #'TB') # vertical layout + dot.node_attr.update(fontsize='48') # Set DPI only if format supports it (like png) if output_format.lower() == 'png': @@ -188,6 +189,7 @@ def plot_workflow_graph(yaml_file_path, os.makedirs(output_dir, exist_ok=True) output_path = os.path.join(output_dir, output_name) dot.render(output_path) + dot.view() # For SVG or PDF, you may want to return the file path or raw output instead of Image() if output_format.lower() in ['png', 'jpg', 'jpeg', 'gif']: