astropy/astropy — pull request #2793 by keflavich (2014-07-24 15:08:58+00:00)
Title: add utility function to check whether code is run inside an ipython notebook

See https://github.com/astropy/astropy/pull/2789