You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These changes replace `_ipython_display_` with `_repr_mimebundle_`
protocol displaying plots within notebooks. Previously, plotnine used
`_ipython_display_()` for display, which works via side effects and
assumes an IPython/Jupyter environment.
Since IPython 6.1 (May 2017), the `_repr_mimebundle_()` protocol allows
objects to return display data instead of triggering side effects. This
decouples rendering from IPython, letting any compatible frontend (e.g.,
Jupyter, marimo) handle presentation without requiring the object to be
aware of the runtime.
The repr continues to generate a single format (PNG, SVG, etc.) based on
configuration to match prior behavior with the `_ipython_display_`.
References:
- https://ipython.readthedocs.io/en/stable/config/integrating.html
- https://ipython.readthedocs.io/en/stable/api/generated/IPython.core.formatters.html
0 commit comments