latex_div_widget#
This example demonstrates the use of inline mathtext on a DIV element.
Details
- Bokeh APIs:
bokeh.models.Div
- More info:
- Keywords:
mathtext, latex
from bokeh.io import show
from bokeh.models import Div
div = Div(
width=400, height=100, background="#fafafa",
text=r"The Pythagorean identity is $$\sin^2(x) + \cos^2(x) = 1$$",
)
show(div)