☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

scroll text in a div widget

Community Support
chupach1
chupach1

Hi,

Is it possible to scroll through a div with lots of text ?

I tried sizing_mode=‘fixed’, embedding it in row, widget box, etc.

but the div always adjust to show all text.

Unsuccessful until now. Is there a way (no absolute need to be div, it can also be pretext or paragraph) ?

Thx

⌁   Link to post
arthurb
arthurb

here is a minimum broken example, a small modification to the bokeh docs:

from bokeh.models.widgets import Div
from bokeh.plotting import curdoc

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=1)

curdoc().add_root(div)

is there any way to get vertical scroll bars? thx.

⌁   Link to post

End of archived discussion · Replies are disabled