Problem With Graphviz and Pydot

19 views
Skip to first unread message

Vuk Pardic

unread,
Sep 20, 2017, 7:28:33 PM9/20/17
to spyd...@googlegroups.com
Hello,
  
    I have a problem when running this simple code in order to check whether the image would be shown.This code was the best I could come up with and after I run it I always get a new window loading for a split sec and then nothing(I don't get any errors just a blank output).
   
import pyparsing
import pydot

graph = pydot.Dot(graph_type="digraph")
graph.add_node(pydot.Node('pointA', label='A'))


from IPython.display import Image
Image(graph.create(graph.prog, 'png'))

  These are the topics I have come across but it seems to me that none of them were directly related to mine issue here.I apologize in advance if I was missing some basic stuff here and any kind of advice and help would be greatly appreciated!

1.https://stackoverflow.com/questions/11854847/display-an-image-from-a-file-in-an-ipython-notebook
2.https://stackoverflow.com/questions/43406106/ipython-core-display-image-object-cant-be-displayed-in-spyder-while-pil-image-i
   I have stumbled upon a couple of more similar topics some of them saying that I have to call a path of the image withing the variable but I really don't understand why it is necessary.
 
Vuk P.

Virus-free. www.avast.com
Reply all
Reply to author
Forward
0 new messages