jupyterlab-contrib / rise

RISE: "Live" Reveal.js JupyterLab Slideshow Extension
BSD 3-Clause "New" or "Revised" License
157 stars 16 forks source link

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

Open TomNicholas opened 1 month ago

TomNicholas commented 1 month ago

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.