Please find attached a patch for ipython. Regards, Fede