More exactly, if I use the same account in another browser, i.e. the same notebook server instance.
At the top I have:
%matplotlib notebook
and animation works fine with simple call:
ani = animation.FuncAnimation(fig, animate)
plt.show()
Adding another parameter doesn't change the behavior