matplotlib / ipympl

Matplotlib Jupyter Integration
https://matplotlib.org/ipympl/
BSD 3-Clause "New" or "Revised" License
1.57k stars 226 forks source link

Learn from `jupyter_rfb` (or use?) #373

Open ianhi opened 2 years ago

ianhi commented 2 years ago

vispy has made a library that solves many of the same issues as ipympl: https://github.com/vispy/jupyter_rfb

Probably good to look over that and maybe learn things. Or more dramatically to start using that library?

Heads up @martinRenou

ianhi commented 2 years ago

For example they are also solving the embedding a static image in the notebook: https://github.com/vispy/jupyter_rfb/blob/73fd4cdd94427bc7add86b38c8f374cbc0ca9dfd/jupyter_rfb/widget.py#L123-L134

martinRenou commented 2 years ago

For example they are also solving the embedding a static image in the notebook: https://github.com/vispy/jupyter_rfb/blob/73fd4cdd94427bc7add86b38c8f374cbc0ca9dfd/jupyter_rfb/widget.py#L123-L134

Nice. If I understand correctly, this was to bypass the nbconvert limitation of showing broken widgets instead of other reprs. This should be fixed in the next nbconvert release with https://github.com/jupyter/nbconvert/pull/1643