What are include/exclude parameter in _repr_mimebundle_ for?

They are mentioned in Integrating your objects with IPython — IPython 8.19.0 documentation, but not explained.

I think these allow the frontend/user to specify preference on which representations to include. For example if the frontend does not support SVG but does PNG it could request to not retun SVG in the mime bundle of an image.

1 Like