I'm able to view a graph from python by using Source, with the following:
import graphviz
d=graphviz.Digraph()
d.edge("Hello", "World")
s = graphviz.Source(d, format="png")
s.view()
But it opens in an independent window and also produce an file output.
Is there a way to directly display the graph in the python console ?
Of course, neither print(d)
nor plain
format give satisfactory results.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.