File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,23 @@ Support for URL string arguments to ``imread``
81
81
The ``imread `` function now accepts URL strings that point to remote PNG
82
82
files. This circumvents the generation of a HTTPResponse object directly.
83
83
84
+ Display hook for animations in the IPython notebook
85
+ ---------------------------------------------------
86
+
87
+ `matplotlib.animation.Animation ` instances gained a ``_repr_html_ `` method
88
+ to support inline display of animations in the notebook. The method used
89
+ to display is controlled by the ``animation.html `` rc parameter, which
90
+ currently supports values of ``none `` and ``html5 ``. ``none `` is the
91
+ default, performing no display. ``html5 `` converts the animation to an
92
+ h264 encoded video, which is embedded directly in the notebook.
93
+
94
+ Users not wishing to use the ``_repr_html_ `` display hook can also manually
95
+ call the `to_html5_video ` method to get the HTML and display using
96
+ IPython's ``HTML `` display class::
97
+
98
+ from IPython.display import HTML
99
+ HTML(anim.to_html5_video())
100
+
84
101
85
102
.. _whats-new-1-4 :
86
103
You can’t perform that action at this time.
0 commit comments