Skip to main content
Get a quick view of the structure of your flow using the .visualize() method. Calling this method attempts to produce a schematic diagram of your flow and tasks without actually running your flow code.
Functions and code outside of flows or tasks will still be run when calling .visualize(). This may have unintended consequences. Place your code into tasks to avoid unintended execution.
To use the visualize() method, you must havae Graphviz installed and on your PATH. Please install Graphviz from http://www.graphviz.org/download/.
Just installing the graphviz python package is not sufficient.
A simple flow visualized with the .visualize() method Prefect cannot automatically produce a schematic for dynamic workflows, such as those with loops or if/else control flow. In this case, you can provide tasks with mock return values for use in the visualize() call.
A flow with return values visualized with the .visualize() method