Skip to content

Commit 94d6be8

Browse files
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
1 parent f5d0486 commit 94d6be8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spacy/displacy/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ def render(
6666
if jupyter or (jupyter is None and is_in_jupyter()):
6767
# return HTML rendered by IPython display()
6868
# See #4840 for details on span wrapper to disable mathjax
69-
from IPython.core.display import HTML, display
69+
from IPython.core.display import HTML
70+
from IPython.display import display
7071

7172
return display(HTML('<span class="tex2jax_ignore">{}</span>'.format(html)))
7273
return html

0 commit comments

Comments
 (0)