Fix incompatibility of documentation with new versions of IPython