fixed IPython_notebook issue with nbagg