At the risk of being self-serving, Toyplot (http://toyplot.readthedocs.org) is a plotting library for Python that Just Works when imported into a notebook. The code to detect the notebook environment was trivial to write, and could easily be adapted to (ahem) legacy libraries. Cheers, Tim