Skip to content

Add options for workflow visualization#126

Merged
frazane merged 1 commit into
mainfrom
feat/dag-rulegraph-viz
Apr 20, 2026
Merged

Add options for workflow visualization#126
frazane merged 1 commit into
mainfrom
feat/dag-rulegraph-viz

Conversation

@frazane
Copy link
Copy Markdown
Contributor

@frazane frazane commented Apr 1, 2026

Add --dag and --rulegraph flags to all workflow subcommands, rendering the Snakemake graph as an SVG via kroki.io, which kindly provides this as a free service. With this, we no longer require graphviz to be installed on the host system.

  • --dag saves dag.svg
  • --rulegraph saves rulegraph.svg
  • DOT output is compressed, base64-encoded, and sent to kroki.io/graphviz/svg/

--dag

dag

--rulegraph

rulegraph

@frazane frazane requested review from Louis-Frey and dnerini April 1, 2026 13:33
@Louis-Frey
Copy link
Copy Markdown
Contributor

Hi Francesco, nice extension! Do you think it would be worth testing the configs on this one too? I can do it...

@frazane
Copy link
Copy Markdown
Contributor Author

frazane commented Apr 16, 2026

Hi Francesco, nice extension! Do you think it would be worth testing the configs on this one too? I can do it...

@Louis-Frey yes, still worth testing the example config, I think. Thanks!

@Louis-Frey
Copy link
Copy Markdown
Contributor

I will now proceed to checking the configs (not the COSMO ones). Balfrin seems slow at the moment though...

@Louis-Frey
Copy link
Copy Markdown
Contributor

Ok so I tested the example configs forecasters-ich1.yaml, forecasters-ich1-oper.yaml, and forecasters-ich1-oper-fixed.yaml (all pinned to anemoi-inference.git@0.10.0). forecasters-ich1-oper-fixed.yaml had the usual issue with the 2024 data, but otherwise all of them ran fine.

Good to merge from my side!

@frazane frazane merged commit 89565c9 into main Apr 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants