now works fine inside ipython notebook