add a function to setup ipython (not fully tested yet)