nandhos
nandhos

Reputation: 721

Troubles after updating ipython (%matplotlib nbagg)

I installed anaconda distro, I usualy run ipython notebook --pylab inline. I updated ipython using pip install (windows 8.1) and I don't have to write --pylab inline to start anymore

I started writing in the cell: %matplotlib nbagg or matplotlib.use['nbagg'], but when I plot something it shows this empty box: enter image description here

I was expecting the interactive plotting box.

The ipython log shows:

[IPKernelApp] ERROR | No such comm: 7cfe982045bb4d0db0f14deff7258130

Upvotes: 9

Views: 10472

Answers (2)

Ziang Yan
Ziang Yan

Reputation: 21

Should update both matplotlib and ipython...

sudo pip install -U ipython
sudo pip install -U matplotlib

on windows:

pip install --upgrade matplotlib
pip install --upgrade ipython

Upvotes: 2

cel
cel

Reputation: 31369

I guess this issue is caused by a too old version of matplotlib. Using %matplotlib nbagg with ipython>=3.0 requires matplotlib>=1.4.3 (Note that %matplotlib notebook and %matplotlib nbagg are now synonyms).

Updating matplotlib via pip install --upgrade matplotlib will probably fix this issue. See also my issue-7797 on github. Thanks to jenshnielsen for this information.

Upvotes: 10

Related Questions