Open sindzicat opened 3 years ago
Temporary workaround:
import ipywidgets as ipw
from IPython.display import HTML, display
%%html
<style>
.text-after-eq {
left: -5px;
}
</style>
h1 = ipw.HTMLMath('$\sin(x^2) + \sum_{n=0}^\infty \left ( \cfrac{1}{n} \\right )$')
h2 = ipw.HTML(', мм',layout=ipw.Layout(align_self='center'))
h2.add_class('text-after-eq')
ipw.HBox([
h1,
h2
])
HTML('$\sin(x^2) + \sum_{n=0}^\infty \left ( \cfrac{1}{n} \\right )$, мм')
If there is some text after equation, the width of output from
ipw.HTMLMath
is too short...JupyterLab 3.0.14
pip freeze output