From a3e889f5ea2c56cc12aafee2692454ea95b49e3a Mon Sep 17 00:00:00 2001 From: Marwan Mohammed Sayed <155132957+MarwanMohammed2500@users.noreply.github.com> Date: Sun, 28 Sep 2025 13:28:10 +0300 Subject: [PATCH] Fixed the import issue in displacy/__init__.py 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 bde2d04fe2b..4651e52129a 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