Skip to content

Commit

Permalink
Added import alias for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Feb 27, 2021
1 parent f383308 commit 55d3d26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PIL/ImageShow.py
Expand Up @@ -116,12 +116,12 @@ def show_file(self, file, **options):

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:
Expand Down

0 comments on commit 55d3d26

Please sign in to comment.