Added import alias for clarity

This commit is contained in:
Andrew Murray 2021-03-04 08:56:03 +11:00
parent 346bfc9537
commit f067fe4c05

View File

@ -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: