mpl-extensions / mpl-interactions

Sliders to control matplotlib and other interactive goodies. Works in any interactive backend and even uses ipywidgets when in a Jupyter notebook
https://mpl-interactions.rtfd.io
BSD 3-Clause "New" or "Revised" License
132 stars 20 forks source link

Use pyodide to render the docs #120

Open ianhi opened 3 years ago

ianhi commented 3 years ago

Problem

Docs are filled with gifs instead of interactive plots. That is extremely sad.

Suggested Improvement

Use pyodide to render python interactions on the docs. It is possible to create interactive matplotlib plots via pyodide see https://alpha.iodide.io/notebooks/300/

Unclear how to best integrate with sphinx though maybe the trail of https://github.com/iodide-project/pyodide/issues/44 can help

I think this will be more performant than thebelab

ianhi commented 3 years ago

I suspect that this will not be trivial - but it would also be so great

larsoner commented 3 years ago

Drive-by comment from a sphinx-gallery maintainer -- the integration at least at our end might not be too difficult. I posted a comment to https://github.com/iodide-project/pyodide/issues/44 about this