From ca9947832fd7db046117c5a6c699ef7d089a96e0 Mon Sep 17 00:00:00 2001 From: Akash <60737679+AkashHiremath856@users.noreply.github.com> Date: Tue, 22 Jul 2025 17:42:00 +0530 Subject: [PATCH] fixed IPython.display import display, HTML error --- spacy/displacy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/displacy/__init__.py b/spacy/displacy/__init__.py index bde2d04fe..5164f9477 100644 --- a/spacy/displacy/__init__.py +++ b/spacy/displacy/__init__.py @@ -66,7 +66,7 @@ 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.display import display, HTML return display(HTML('{}'.format(html))) return html