Open isentropic opened 4 years ago
If this is just about rendering pyplot objects differently in jupyter notebooks, I am definitely for option 2.
If jupyter has its own MIME type, we could just add a show
method for that?
If this is just about rendering pyplot objects differently in jupyter notebooks, I am definitely for option 2.
It could be about rendering them from repl too. It's more like ORCA, WebIO, electron stack for plotly()
Having a separate backend mpld3 is more versatile, as users can switch around easily, but that would make it confusing like plotly/plotlyjs. Because technically it is not a separate backend.
You could really try and see what it is by checking the example I put up above
So it is a general html renderer for matplotlib. And if we use that in the html-show method, you should get interactive Plots in jupyter as well as the juno-plot pane for example.
You are right, this is javascript html renderer of pyplot figures
In short, mpld3 is a javascript pyplot rendering backend. https://mpld3.github.io/quickstart.html It renders zoomable, panable plots with optional plugins. More examples here https://mpld3.github.io/notebooks/mpld3_demo.html Minimal example on what it is:
Why: Interactive (jupyter) plots are always desirable when exploring the data.
How can this be accomplished:
plotlyjs
mpld3
flagmpld3
, upon failure fallback to default pyplot renderingMy order of preference is definitely 2, 1, 3
Pros:
Cons: