fixed ipython integration