There are pros and cons to each: Is very easy to write and supports dynamic anything (titles, labels, scaling, etc.). This works fine for data at <10Hz, but is incredibly slow and resource intensive ...
The canonical FuncAnimation example does not work in https://molab.marimo.io (nor in https://marimo.app for that matter) even though it works in plain old jupyter and even pyscript. mo.mpl.interactive ...