---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-9-b51bfc0123f6> in <module>()
23
24 # call our new function to display the animation
---> 25 display_animation(anim)
<ipython-input-8-c8da01cb9947> in display_animation(anim)
19 def display_animation(anim):
20 plt.close(anim._fig)
---> 21 return HTML(anim_to_html(anim))
<ipython-input-8-c8da01cb9947> in anim_to_html(anim)
9 if not hasattr(anim, '_encoded_video'):
10 with NamedTemporaryFile(suffix='.mp4') as f:
---> 11 anim.save(f.name, fps=20, extra_args=['-vcodec', 'libx264'])
12 video = open(f.name, "rb").read()
13 anim._encoded_video = video.encode("base64")
/usr/lib/python2.7/dist-packages/matplotlib/animation.pyc in save(self, filename, writer, fps, dpi, codec, bitrate, extra_args, metadata, extra_anim, savefig_kwargs)
750 #TODO: Need to see if turning off blit is really necessary
751 anim._draw_next_frame(d, blit=False)
--> 752 writer.grab_frame(**savefig_kwargs)
753
754 # Reconnect signal for first draw if necessary
/usr/lib/python2.7/contextlib.pyc in __exit__(self, type, value, traceback)
22 if type is None:
23 try:
---> 24 self.gen.next()
25 except StopIteration:
26 return
/usr/lib/python2.7/dist-packages/matplotlib/animation.pyc in saving(self, *args)
175 self.setup(*args)
176 yield
--> 177 self.finish()
178
179 def _run(self):
/usr/lib/python2.7/dist-packages/matplotlib/animation.pyc in finish(self)
363 raise RuntimeError('Error creating movie, return code: '
364 + str(self._proc.returncode)
--> 365 + ' Try running with --verbose-debug')
366
367 def cleanup(self):
RuntimeError: Error creating movie, return code: 1 Try running with --verbose-debug