I'm trying to plot a graph in an interactive window using the graph_draw
command with no output, and I get an error that says "interactive_window is
not defined". The same thing happens when I run from a notebook with the
kwarg inline=False.
I assume that this is an installation issue? I installed on a Mac via
Homebrew, roughly following the recommended tutorial, and I'm pretty sure I
have all the listed dependencies – boost, boost-python, cairo, cairomm,
py2cairo, graphviz and many others are all installed via Homebrew.
This problem is independent of MatPlotLib; in any case the backend is set to
MacOSX in my matplotlibrc file.
Apparently I did not have GTK installed. I have now installed gtk+3 via
homebrew, and it has included several dependencies including
gobject-introspection.
Do I also need pygobject, or pygobject3?
And will I need to reinstall graph-tool (using make or make configure)?
Apparently I did not have GTK installed. I have now installed gtk+3 via
homebrew, and it has included several dependencies including
gobject-introspection.
Do I also need pygobject, or pygobject3?
Yes, I think so.
And will I need to reinstall graph-tool (using make or make configure)?
I have installed gtk+3 and pygobject , and have definite progress. Import
graph_tool now launches an X11 session, so that's promising. But the
command that should produce an interactive plot now gives a different error.
Traceback below.
Thank you very much for your ongoing help Tiago, you are a forum hero!
I tried editing the Homebrew formula for librsvg to obtain the latest
version and enable introspection, and sure enough I can now produce an
interactive graph! Hooray! I've posted the issue on the Homebrew github
page that you referred.
BUT: now I have a different problem. In my beautiful interactive graphs,
the second node I select infallibly triggers a fatal error that kills the
kernel. Here it is:
Thanks Tiago. Using the Macports install was the very first thing I tried, I’m rather committed to Homebrew through other packages. The two of them don’t play nicely together, and I ended up breaking a lot of other things. I might look into trying to get them to cooperate if I can’t get a fix for GTK.