Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Support animations

Open
#61 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
jupyter-notebook, python

Research direction

Start by tracing the repository's inline rendering path for the last statement's return value and how notebook display output is handled. Reproduce the shown FuncAnimation example, then verify that an Animation is automatically rendered as HTML without the manual boilerplate or an extra static figure.

Written by the indexing model from the issue text.

Description

To visualize animations in notebooks on

from IPython.display import HTML

[...]

ani = matplotlib.animation.FuncAnimation(fig, animate, frames=FRAMES)
plt.close(fig)  # prevent ipython from drawing the static figure
HTML(ani.to_jshtml())

It would be nice to adapt the logic so that if the return value of the last statement is an Animation, automatically turn that animation into HTML and display it, so that the user doesn't have to do all the above boilerplate and can just write

matplotlib.animation.FuncAnimation(fig, animate, frames=FRAMES)
Dominant language
Jupyter Notebook
Stars
31
Forks
39
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ipython/matplotlib-inline

All issues in ipython/matplotlib-inline

Similar issues

More Data Visualization issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.