<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi,<br></div><div><br></div><div>I'm working on a class to which I would like to add a _repr_html_ [1] method for display in Jupyter notebooks. Is there a way to generate a matplotlib notebook backend view "offline" (not using pyplot, since that will behave differently depending on the currently active backend), and then return the corresponding html?<br></div><div><br></div><div>Thanks,<br></div><div><br></div><div>Juan.<br></div><div><br></div><div>.. [1]: <a href="https://ipython.readthedocs.io/en/stable/config/integrating.html#rich-display">https://ipython.readthedocs.io/en/stable/config/integrating.html#rich-display</a><br></div></body></html>