-
Notifications
You must be signed in to change notification settings - Fork 5
Animation
Find below some notes/links from some initial research on incorporating animations into Jupyter Notebooks
Matplotlib has an animation module that looks fairly straightforward: https://matplotlib.org/api/animation_api.html
MPL animations are embeddable into notebooks with a little work: http://louistiao.me/posts/notebooks/embedding-matplotlib-animations-in-jupyter-notebooks/ -- using % pylab inline
might be more what we're looking for if we will have interaction
Nice mini-tutorial notebook on using widgets and animations with some useful links: https://nbviewer.jupyter.org/github/WillClaudeHolmes/Jupyter_Examples/blob/master/AnimationIllustration.ipynb (related aside, here's another link for widgets for doing interactive stuff: https://blog.dominodatalab.com/interactive-dashboards-in-jupyter/)
Looked into Bokeh server (http://bokeh.pydata.org/en/latest/docs/gallery.html) and their animation stuff; the 3d animation example (https://demo.bokehplots.com/apps/surface3d) seems to require wrapping of Javascript, and potentially messing with a *.coffee script. Simpler animations may be possible with interactions that could be hosted on a website, but I haven't found much example code to start from.
Plot.ly also can handle animations in notebooks (https://plot.ly/python/ipython-notebook-tutorial/#animated-plots), but looking at the code there seems involve a mess of dictionaries.
tl;dr - MPL actually seems like a good starting point for what we want