I want to get the interaсtive Matplotlib window in IPython notebook. I have several 2D points and I want to draw this. So I do
import matplotlib.pyplot as plt, mpld3
plt.scatter(points[0], points[1], color='r')
mpld3.show()
But I get error Object of type 'ndarray' is not JSON serializable
. So how can I win it?