From 94d6be8a9b1dbecc92820bd7996cd8c75e186320 Mon Sep 17 00:00:00 2001 From: Marwan Mohammed Sayed <155132957+MarwanMohammed2500@users.noreply.github.com> Date: Tue, 28 Oct 2025 11:43:08 +0300 Subject: [PATCH] Fixed the import issue in displacy/__init__.py (#13876) IPython deprecated IPython.core.display.display. The new one became IPython.display.display. So, I just fixed the import issue based on the new changes in IPython --- spacy/displacy/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spacy/displacy/__init__.py b/spacy/displacy/__init__.py index bde2d04fe..4651e5212 100644 --- a/spacy/displacy/__init__.py +++ b/spacy/displacy/__init__.py @@ -66,7 +66,8 @@ def render( if jupyter or (jupyter is None and is_in_jupyter()): # return HTML rendered by IPython display() # See #4840 for details on span wrapper to disable mathjax - from IPython.core.display import HTML, display + from IPython.core.display import HTML + from IPython.display import display return display(HTML('{}'.format(html))) return html