workaround ipython/ipython#6383