interaction_div.py — Anaconda Enterprise 4.4 documentation

Anaconda Enterprise: Documentation

# interaction_div.py

    from bokeh.io import output_file, show
    from bokeh.layouts import widgetbox
    from bokeh.models.widgets import Div

    output_file("div.html")

    div = Div(text="""Your <a href="https://en.wikipedia.org/wiki/HTML">HTML</a>-supported text is initialized with the <b>text</b> argument.  The
    remaining div arguments are <b>width</b> and <b>height</b>. For this example, those values
    are <i>200</i> and <i>100</i> respectively.""",
    width=200, height=100)

    show(widgetbox(div))