rise icon indicating copy to clipboard operation
rise copied to clipboard

Html and string representation of object both shown together in presentation mode

Open TomNicholas opened this issue 1 month ago • 0 comments

Xarray has objects with both a HTML representation and a printable string repr. The HTML repr is implemented through a _repr_html_ method, and works great in jupyter normally, where it is the default way of displaying an xarray.Dataset object.

Screenshot 2024-05-14 at 2 17 23 PM

When I make a RISE slide with the same code, in presentation mode it first prints the string representation of the ds object, then displays a (very messed up-looking) version of the HTML repr.

Screenshot 2024-05-14 at 2 17 35 PM

It looks like an issue was raised for odd sizing of HTML output (#51), but here I want to raise the separate issue of printing both the string repr and the HTML repr.

TomNicholas avatar May 14 '24 18:05 TomNicholas