Fix ipython for multiple versions