Should work with new and old version of IPython