Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ipython/ipython
/ _repr_png_
Method
_repr_png_
IPython/core/display.py:1311–1313 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
1309
return
b64_data
1310
1311
def
_repr_png_(self):
1312
if
self.embed and self.format == self._FMT_PNG:
1313
return
self._data_and_metadata()
1314
1315
def
_repr_jpeg_(self):
1316
if
self.embed and self.format == self._FMT_JPEG:
Callers
2
test_retina_png
Function · 0.95
test_image_filename_defaults
Function · 0.95
Calls
1
_data_and_metadata
Method · 0.95
Tested by
2
test_retina_png
Function · 0.76
test_image_filename_defaults
Function · 0.76