Usage

This will display a PNG (by default) using your operating system's default
PNG viewer. Alternatively, if you are in an IPython notebook, then you
might like the image displayed inline. This is achieved by setting the show
parameter of the draw function.

draw(G, show='ipynb')

If you want all graphs to be drawn inline, then you can set a global parameter.

from nxpd import nxpdParams
nxpdParams['show'] = 'ipynb'
draw(G)

Any graph/node/edge attribute that is supported by DOT is passed through to
graphviz (via pydot). All others are skipped.