Compatibility for version 2.0 of ipython notebook