From 029ac5b52746c61be8bb2cf5827bfd870d64aa27 Mon Sep 17 00:00:00 2001 From: astromancer Date: Wed, 20 May 2020 08:49:35 +0200 Subject: [PATCH] fix display imports --- ipykernel/pylab/backend_inline.py | 2 +- ipykernel/tests/test_message_spec.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ipykernel/pylab/backend_inline.py b/ipykernel/pylab/backend_inline.py index b4d31077a..f93c98e4d 100644 --- a/ipykernel/pylab/backend_inline.py +++ b/ipykernel/pylab/backend_inline.py @@ -15,7 +15,7 @@ from matplotlib._pylab_helpers import Gcf from IPython.core.getipython import get_ipython -from IPython.core.display import display +from IPython.display import display from .config import InlineBackend diff --git a/ipykernel/tests/test_message_spec.py b/ipykernel/tests/test_message_spec.py index e75e219c6..cafb99ba1 100644 --- a/ipykernel/tests/test_message_spec.py +++ b/ipykernel/tests/test_message_spec.py @@ -541,7 +541,7 @@ def test_stream(): def test_display_data(): flush_channels() - msg_id, reply = execute("from IPython.core.display import display; display(1)") + msg_id, reply = execute("from IPython.display import display; display(1)") display = KC.iopub_channel.get_msg(timeout=TIMEOUT) validate_message(display, 'display_data', parent=msg_id)