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