If you are working in an interactive environment, such as Jupyter notebooks, you can use the display method to display the visualized job diagram directly in the notebook.
The direction for the diagram to flow. For more details, see the relevant section in the D2 documentation. Valid values are up, down, right, and left. The default value is down.
The layout engine for the diagram. For further information, refer to the D2 layout engines. Valid values are dagre and elk, with the default being dagre.