mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-14 05:36:48 +03:00
Added import alias for clarity
This commit is contained in:
parent
346bfc9537
commit
f067fe4c05
|
@ -228,12 +228,12 @@ if sys.platform not in ("win32", "darwin"): # unixoids
|
||||||
|
|
||||||
class IPythonViewer(Viewer):
|
class IPythonViewer(Viewer):
|
||||||
def show_image(self, image, **options):
|
def show_image(self, image, **options):
|
||||||
display(image)
|
ipython_display(image)
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from IPython.display import display
|
from IPython.display import display as ipython_display
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user