DOC: turn off the ipython cache

Also clean up some unused import there

closes #3807.