fix cannot import name 'display' from 'IPython.core.display'

This commit is contained in:
Yakov Wildfluss 2025-03-29 14:37:45 +03:00
parent b3c46c315e
commit d11b056239

View File

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