Matplotlib animation not working in IPython Notebook (blank plot)

前端 未结 5 1336
悲&欢浪女
悲&欢浪女 2021-02-01 20:36

I\'ve tried multiple animation sample codes and cannot get any of them working. Here\'s a basic one I\'ve tried from the Matplotlib documentation:

\"\"\"
A simp         


        
5条回答
  •  南笙
    南笙 (楼主)
    2021-02-01 21:04

    No inline video in Jupyter at the end of an animation also happens when

    HTML(ani.to_html5_video())

    is not at the very end of a notebook cell, as the output is then suppressed.

    You may use it then as follows

    out = HTML(ani.to_html5_video())

    and just type out` in a new cell to get the video online.

提交回复
热议问题