Ipython diagrams