Fix doc-compilation for IPython >=2