Skip to content

Added a _repr_png_#4

Open
yoavram wants to merge 2 commits intolog0:masterfrom
yoavram:png
Open

Added a _repr_png_#4
yoavram wants to merge 2 commits intolog0:masterfrom
yoavram:png

Conversation

@yoavram
Copy link
Copy Markdown

@yoavram yoavram commented Jun 14, 2016

_repr_png uses write_png to implement an IPython notebook display hook so that graphs could be displayed in the notebook:

g = Dot()
node = pydot.Node('Node')
g.add_node(node)
g

(previous version implemented Graph.to_png but then I figured I can just use Dot.write_png).

@yoavram yoavram changed the title Added to_png and a _repr_png_ Added a _repr_png_ Jun 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant