mystmd icon indicating copy to clipboard operation
mystmd copied to clipboard

Animated webp as an output of a code cell is converted to single image webp

Open arminms opened this issue 9 months ago • 0 comments

Description

Animated webp is supported by Jupyter as an output of a code cell. When I open and run a MyST markdown file containing such a code cell in Jupyter, it shows the animation. But when I generate a MyST website using --execute option, it replaces the output with a still webp image. The same thing works with gif animation. You can see both of them on the following page:

https://armin.sobhani.me/g3p/animating-plots#webp-animations

On the above page, if you activate in-browser execution and run it, the animated webp starts to play.

myst version: v1.3.20

Proposed solution

Disable processing of webp images and let them pass through.

Additional notes

arminms avatar Feb 07 '25 18:02 arminms