☰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

Can't set WidgetBox width

Community Support
Marcus_Donnelly
Marcus_Donnelly

Hi All,

After upgrading to v0.12.4 I can no longer set the width of a WidgetBox containing a TextInput. Example code below, which worked for v0.12.3. Is there a different way of doing this now?

Thanks,
Marcus.

···

from bokeh.models.widgets.inputs import TextInput
from bokeh.models.layouts import WidgetBox, Column
from bokeh.plotting import show

ti = TextInput(title = ‘Enter text:’)

c = Column(children = [WidgetBox(ti,width = 1000)])

show(c)

⌁   Link to post
Bryan
Bryan

No, that seems like a bug. Please file a report on GH with as much information as possible. Making a bugfix pass over the layout system is on the 0.12.5 milestone.

Thanks,

Bryan

···

On Jan 15, 2017, at 12:01 PM, Marcus Donnelly <marcus.k.donnelly@gmail.com> wrote:

Hi All,

After upgrading to v0.12.4 I can no longer set the width of a WidgetBox containing a TextInput. Example code below, which worked for v0.12.3. Is there a different way of doing this now?

Thanks,
Marcus.

------------

from bokeh.models.widgets.inputs import TextInput
from bokeh.models.layouts import WidgetBox, Column
from bokeh.plotting import show

ti = TextInput(title = 'Enter text:')

c = Column(children = [WidgetBox(ti,width = 1000)])

show(c)

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/c4209def-2427-4323-8583-068c6ee7add8%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post
Marcus_Donnelly
Marcus_Donnelly

Thanks Bryan, will raise GH issue.

···

On Sunday, January 15, 2017 at 9:59:39 PM UTC, Bryan Van de ven wrote:

No, that seems like a bug. Please file a report on GH with as much information as possible. Making a bugfix pass over the layout system is on the 0.12.5 milestone.

Thanks,

Bryan

On Jan 15, 2017, at 12:01 PM, Marcus Donnelly marcus.k...@gmail.com wrote:

Hi All,

After upgrading to v0.12.4 I can no longer set the width of a WidgetBox containing a TextInput. Example code below, which worked for v0.12.3. Is there a different way of doing this now?

Thanks,

Marcus.


from bokeh.models.widgets.inputs import TextInput

from bokeh.models.layouts import WidgetBox, Column

from bokeh.plotting import show

ti = TextInput(title = ‘Enter text:’)

c = Column(children = [WidgetBox(ti,width = 1000)])

show(c)

–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+un...@continuum.io.

To post to this group, send email to bo...@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/c4209def-2427-4323-8583-068c6ee7add8%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

⌁   Link to post
Vinhthuy_Phan
Vinhthuy_Phan

As of v0.12.5, I am having problems setting width of TextInput. Hopefully, this will be fixed soon.

Thanks.

···

On Sunday, January 15, 2017 at 1:01:03 PM UTC-5, Marcus Donnelly wrote:

Hi All,

After upgrading to v0.12.4 I can no longer set the width of a WidgetBox containing a TextInput. Example code below, which worked for v0.12.3. Is there a different way of doing this now?

Thanks,
Marcus.


from bokeh.models.widgets.inputs import TextInput
from bokeh.models.layouts import WidgetBox, Column
from bokeh.plotting import show

ti = TextInput(title = ‘Enter text:’)

c = Column(children = [WidgetBox(ti,width = 1000)])

show(c)

⌁   Link to post
Michael
Michael

Until this is fixed, a fixed workaround (at least for bokeh server) is to place the following into a custom CSS file:

//this overwrites TextInput class for input, so width works correctly

.bk-widget-form-input {

width: 600px; //!important

}

···

On Sunday, May 28, 2017 at 9:50:17 AM UTC-4, vinhth...@gmail.com wrote:

As of v0.12.5, I am having problems setting width of TextInput. Hopefully, this will be fixed soon.

Thanks.

On Sunday, January 15, 2017 at 1:01:03 PM UTC-5, Marcus Donnelly wrote:

Hi All,

After upgrading to v0.12.4 I can no longer set the width of a WidgetBox containing a TextInput. Example code below, which worked for v0.12.3. Is there a different way of doing this now?

Thanks,
Marcus.


from bokeh.models.widgets.inputs import TextInput
from bokeh.models.layouts import WidgetBox, Column
from bokeh.plotting import show

ti = TextInput(title = ‘Enter text:’)

c = Column(children = [WidgetBox(ti,width = 1000)])

show(c)

⌁   Link to post

End of archived discussion · Replies are disabled