Animations in ipython (jupyter) notebook - ValueError: I/O operation on closed file

后端 未结 1 1692
遥遥无期
遥遥无期 2021-01-14 22:48

I have a jupyter notebook that produces an animation. It was working on my old laptop (xubuntu gnu/linux). Now on my new laptop (trisquel gnu/linux) it\'s not working. This

相关标签:
1条回答
  • 2021-01-14 23:33

    I ran into the same issue (on a mac os 10.12.2), and fixed it by reinstalling ffmpeg and enabling the x264 codec , which the to_html5_video() function needs to convert the animation to html5.

    To install x264:

    cd /my/path/where/i/keep/compiled/stuff
    git clone git://git.videolan.org/x264.git
    cd x264
    ./configure --enable-static --enable-shared
    make
    make install
    ldconfig # note: use for linux, not necessary for mac
    

    source

    To install ffmpeg with the x264 codec enabled:

    cd /my/path/where/i/keep/compiled/stuff
    git clone http://source.ffmpeg.org/git/ffmpeg.git
    cd ffmpeg
    ./configure --enable-gpl --enable-libx264
    make
    make install
    ldconfig # note: use for linux, not necessary for mac
    

    source

    0 讨论(0)
提交回复
热议问题