Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a _repr_png_ #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Added a _repr_png_ #4

wants to merge 2 commits into from

Conversation

yoavram
Copy link

@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.

None yet

1 participant