More fixes for documentation building

Ignore IPython imports and move matplotlib import into widget
functions