causalnex.plots.display_plot_ipython

causalnex.plots.display_plot_ipython(viz, prog='neato')[source]

Displays a pygraphviz object using ipython.

Parameters
  • viz (AGraph) – pygraphviz object to render.

  • prog (str) – The graph layout. Avaliable are:

  • dot

  • neato

  • fdp

  • sfdp

  • and circo (twopi) –

Return type

Image

Returns

IPython Image object. Renders in a notebook.

Raises

ImportError – if IPython is not installed (optional dependency).