Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make Animation._repr_html_ more useful by default#31510

Open
QuLogic wants to merge 1 commit intomatplotlib:mainfrom
QuLogic:default-html-animation
Open

Make Animation._repr_html_ more useful by default#31510
QuLogic wants to merge 1 commit intomatplotlib:mainfrom
QuLogic:default-html-animation

Conversation

@QuLogic
Copy link
Copy Markdown
Member

@QuLogic QuLogic commented Apr 16, 2026

PR summary

While Animation does define _repr_html_, it does nothing by default since animation.html is 'none'. The 'html5' option is the best, but it requires FFmpeg to be installed. So introduce a new 'auto' option that picks either one depending on what's available, and make it the default.

This still needs some docs/tests, if we are okay with this approach.

AI Disclosure

None

PR checklist

@timhoffm
Copy link
Copy Markdown
Member

I like the idea.

While `Animation` does define `_repr_html_`, it does nothing by default
since `animation.html` is 'none'. The 'html5' option is the best, but it
requires FFmpeg to be installed. So introduce a new 'auto' option that
picks either one depending on what's available, and make it the default.
@QuLogic QuLogic force-pushed the default-html-animation branch from 55e23db to 690f7d3 Compare April 18, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants