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 26, 2021
1 parent 34b7edf commit 0706f1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PIL/ImageShow.py
Expand Up @@ -220,12 +220,12 @@ def get_command_ex(self, file, title=None, **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 0706f1c

Please sign in to comment.