%install_ext https://raw.github.com/tkf/ipython-hierarchymagic/master/hierarchymagic.py %load_ext hierarchymagic # %hierarchy get_ipython() %%dot -f svg digraph G { a->b; b->c; c->d; c->a; d->b; d->a; } !pip install pyrels==0.1.1 from pyrels.pyrels2dot import namespace2dot_str print namespace2dot_str({"myInt": 42}) %%dot -f svg digraph G { overlap=false; name4368865680 [label="myInt", shape="ellipse"]; int4298193560 [label="int: 42", shape="box"]; name4368865680 -> int4298193560 [label="ref"]; } # %install_ext file:///Users/dinu/Desktop/joy-of-scipy/ipython_objgraph_magic.py %install_ext https://gist.github.com/deeplook/4731035/raw/daa82e13f6635f513694bffb0bb9bc8a1b4ceff2/ipython_object_graphs.py %load_ext ipython_objgraph_magic class C(object): pass n = 23 L = [1, 23, (2, 3), None, C] %%objgraph -f svg {"myInt": n, "myList": L}