Download error?

I tried using graph viz for the first time, so I downloaded Graphviz using pip install and imported it. Then I took this code from the website and pasted it in the notebook:
strict graph {
a – b
a – b
b – a [color=blue]

However, it gave me this error:
Could this be a download error or a code error?

1 Like

Looks like you’re trying to execute graphviz code directly as python code, and graphviz source isn’t valid python syntax (they’re different languages).

Here’s an example of how to use Graphviz in a jupyter notebook:, hope this helps?