fluidml.visualization

fluidml.visualization.visualize_graph_in_console(graph, use_pager=True, use_unicode=False)[source]

Visualizes the task graph by rendering it to the console.

When using a pager the keyboard input “:q” is required to continue.

Parameters:
  • graph (nx.DiGraph) – A networkx directed graph object

  • use_pager (bool) – If true, tries rendering via pager (defaulting to print), if false, print

  • use_unicode (bool) – Renders the graph in unicode if console supports it

fluidml.visualization.visualize_graph_interactive(graph, plot_width=500, plot_height=200, node_width=50, node_height=50, scale_width=True, browser=None)[source]

Visualizes the task graph interactively in a browser or jupyter notebook.

Parameters:
  • graph (Graph) – A networkx directed graph object

  • plot_width (int) – The width of the plot.

  • plot_height (int) – The height of the plot.

  • node_width (int) – Influences the horizontal space between nodes.

  • node_height (int) – Influences the vertical space between nodes.

  • scale_width (bool) – If true, scales the graph to the screen width.

  • browser (Optional[str]) – If provided, renders the graph in the browser, e.g. “chrome” or “firefox”. Note the browser might need to be registered using Python’s webbrowser library.