Skip to content

Commit

Permalink
readopt pydot
Browse files Browse the repository at this point in the history
  • Loading branch information
chrizzFTD committed Aug 18, 2024
1 parent d9659f9 commit 01ada29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grill/views/_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ def _load_graph(self, graph):
return

try: # exit early if pygraphviz is not installed, needed for positions
positions = drawing.nx_agraph.graphviz_layout(graph, prog='dot')
positions = drawing.nx_pydot.graphviz_layout(graph, prog='dot')
except ImportError as exc:
message = str(exc)
print(message)
Expand Down Expand Up @@ -805,7 +805,7 @@ def _subgraph_dot_path(self, node_indices: tuple):

fd, fp = tempfile.mkstemp()
try:
nx.nx_agraph.write_dot(subgraph, fp)
nx.nx_pydot.write_dot(subgraph, fp)
except ImportError as exc:
error = f"{exc}\n\n{_DOT_ENVIRONMENT_ERROR}"
else:
Expand Down

0 comments on commit 01ada29

Please sign in to comment.