I'm using mpld3 to visualize interactive plots in ipython notebook

It used to work fine. I installed a new computer, with the latest versions of Ipython and Matplotlib.

But when I run:

enable_notebook()
plot([1,2],[1,2])

instead of getting a plot I get only:

Out[8]: [<matplotlib.lines.Line2D at 0x5cb0850>]

what am I doing wrong?

有帮助吗?

解决方案

This is probably related to upgrading the library, and having old versions of the javascript hanging around. We haven't put it up on the mpld3 website yet, but you can see some relevant information in the FAQ section of the mpld3 git repository.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top