MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _repr_html_

Method _repr_html_

lib/matplotlib/font_manager.py:409–412  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

407 size: str = 'medium'
408
409 def _repr_html_(self) -> str:
410 png_stream = self._repr_png_()
411 png_b64 = b64encode(png_stream).decode()
412 return f"<img src=\"data:image/png;base64, {png_b64}\" />"
413
414 def _repr_png_(self) -> bytes:
415 from matplotlib.figure import Figure # Circular import.

Callers 2

test_fontentry_dataclassFunction · 0.95

Calls 1

_repr_png_Method · 0.95

Tested by 2

test_fontentry_dataclassFunction · 0.76