diff --git a/src/PIL/ImageShow.py b/src/PIL/ImageShow.py index 0e935b2c64f..81b48b6adea 100644 --- a/src/PIL/ImageShow.py +++ b/src/PIL/ImageShow.py @@ -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: