[graph-tool] Drawing in IPython Notebook inline (web interface)

Tiago de Paula Peixoto tiago at skewed.de
Fri Mar 14 15:52:22 CET 2014

On 03/14/2014 12:10 PM, Joel Moberg wrote:
> I don't know if this feature exists already, I haven't found it
> atleast. In IPython notebook it would be nice to draw a graph when
> calling `graph_draw(`. I found how igraph did some of this here:
> https://github.com/igraph/igraph/pull/7/files.

This is a good idea, and it is in fact very easy to implement. In the
current git version you can do:

        graph_draw(g, inline=True)

which will draw an inline image within an Ipython notebook.


Tiago de Paula Peixoto <tiago at skewed.de>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <https://lists.skewed.de/pipermail/graph-tool/attachments/20140314/c0f12e2c/attachment.asc>

More information about the graph-tool mailing list