title: repeat_delay parameter has no effect in animated plot in Jupyter
body: <p>I am making a simple animated scatter plot in a Jupyter notebook, and I want it to repeat, but with a delay before it loops. This is supposed to be set with the <code>repeat_delay</code> parameter, but it has no effect when I use it in a Jupyter notebook using <code>HTML(ani.to_html5_video())</code> to show the animation.</p>
  <p>Here is a simple example of repositioning 20 points every 200 ms, but trying to add a 2 second delay before repeating the animation:</p>
  <pre><code>import matplotlib.pyplot as plt
  import numpy as np
  import matplotlib.animation as animation
  from IPython.display import HTML
  
  frame_interval = 200
  vid_repeat = True
  repeat_delay = 2000  # set long so it would be obvious
  
  def update_xy(i, scat):
      scat.set_offsets(np.random.random((20,2)))
      return scat,
  
  fig = plt.figure()
  init_data = np.random.random((20,3))
  scat = plt.scatter(init_data[:,0], init_data[:,1], c=init_data[:,2], s=50, cmap = &quot;hot&quot;)
  
  ani = animation.FuncAnimation(fig, 
                                update_xy, 
                                frames=numframes,
                                interval = frame_interval,
                                repeat = vid_repeat,
                                repeat_delay = repeat_delay,
                                fargs=(scat,))
  plt.close(ani._fig)
  HTML(ani.to_html5_video())
  </code></pre>
  <p>At the end, it just loops around at <code>frame_interval</code> no matter what value I put for <code>repeat_delay</code>. I get the same result when I save the animation <code>ani.save('foo.mp4')</code>, or try to play it using  <code>HTML(ani.to_jshtml())</code>.</p>
  <p><strong>Related Questions</strong><br />
  <a href="https://stackoverflow.com/questions/35532498/animation-in-ipython-notebook">Animation in iPython notebook</a><br />
  <a href="https://stackoverflow.com/questions/9401658/how-to-animate-a-scatter-plot">How to animate a scatter plot?</a></p>