Apply suggestions from code review

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
Ishant Mrinal Haloi 2023-05-12 21:56:40 +05:30 committed by GitHub
parent ccdce1791d
commit 46708099b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -654,15 +654,13 @@ class Image:
"""
return self._repr_image("PNG")
def _repr_jpg_(self):
def _repr_jpeg_(self):
"""iPython display hook support for JPEG format.
:returns: jpg version of the image as bytes
"""
return self._repr_image("JPEG")
_repr_jpeg_ = _repr_jpg_
@property
def __array_interface__(self):
# numpy array interface support