1
1
mirror of https://github.com/explosion/spaCy.git synced 2025-04-02 16:24:13 +03:00

fix: import display from ipython.display

This commit is contained in:
Satoshi 2025-03-11 01:42:02 +08:00
parent b3c46c315e
commit 09c4a4cc7d

View File

@ -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 HTML, display
return display(HTML('<span class="tex2jax_ignore">{}</span>'.format(html)))
return html