Comment out dot.view() for compatibility issues running on docker

This commit is contained in:
2025-06-22 15:22:24 +02:00
parent 967a40f93a
commit f90ef82a32

View File

@ -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']: