From d11b056239998c99e5203eea8d5f89ed380c4f42 Mon Sep 17 00:00:00 2001 From: Yakov Wildfluss Date: Sat, 29 Mar 2025 14:37:45 +0300 Subject: [PATCH] fix cannot import name 'display' from 'IPython.core.display' --- spacy/displacy/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/displacy/__init__.py b/spacy/displacy/__init__.py index bde2d04fe..3fafbf668 100644 --- a/spacy/displacy/__init__.py +++ b/spacy/displacy/__init__.py @@ -66,9 +66,9 @@ 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 - return display(HTML('{}'.format(html))) + return HTML('{}'.format(html)) return html