mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +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):
|
||||
def show_image(self, image, **options):
|
||||
display(image)
|
||||
ipython_display(image)
|
||||
return 1
|
||||
|
||||
|
||||
try:
|
||||
from IPython.display import display
|
||||
from IPython.display import display as ipython_display
|
||||
except ImportError:
|
||||
pass
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user