ENH Work with newer IPython

Unfortunately, this use of IPython is not very well supported and, thus,
there is no official API.