La animación Matplotlib en el cuaderno Jupyter crea una trama vacía adicional

Comencé a crear una serie de cuadernos interactivos para una conferencia DSP. Hasta ahora, he logrado copiar e implementar el MWE pegado a continuación. Sin embargo, además de la figura matplotlib que contiene la animación, siempre obtengo una ventana Matplotlib vacía. ¿Alguna idea de cómo suprimir este comportamiento?

python: 3.6.3 matplotlib: 2.0 y 2.1 IPython: 5.3.0 SO: Win 7 64 bit

%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt

from matplotlib import animation
from IPython.display import HTML

plt.rcParams['figure.figsize'] = (5,3)
plt.rcParams['figure.dpi'] = 100
plt.rcParams['savefig.dpi'] = 100
plt.rcParams["animation.html"] = "jshtml"  # for matplotlib 2.1 and above, uses JavaScript
#plt.rcParams["animation.html"] = "html5" # for matplotlib 2.0 and below, converts to x264 using ffmpeg video codec
t = np.linspace(0,2*np.pi)
x = np.sin(t)

fig, ax = plt.subplots()
ax.axis([0,2*np.pi,-1,1])
l, = ax.plot([],[])

def animate(i):
    l.set_data(t[:i], x[:i])

ani = animation.FuncAnimation(fig, animate, frames=len(t))
ani

El cuaderno también se puede ver en:

https://github.com/chipmuenk/dsp_fpga/blob/master/notebooks/01_LTI/MWE_animation.ipynb

En la representación estática en github, solo se muestra la ventana de trazado vacía, no la animación de JavaScript.