☰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

dynamically change Select widget values

Community Support
Tamir_Gefen
Tamir_Gefen

So i want to change the select options dynamically from another callback JS.

What i do from the callback is this:

select.options = new_data.data;

But after doing this, the values dont actually change on screen. i tried calling "change.emit()". doesn't help.

What should i do to "force" the change?

Thanks!
⌁   Link to post
Bryan
Bryan

Hi,

What is new_data.data? Select options expects a list of string values value, label tuples (or a specific dict format dirt for grouped select). It looks like to are passing a data source which is not the expected thing.

Thanks,

Bryan

···

On Jan 22, 2019, at 23:54, Tamir Gefen tamir@jether-energy.com wrote:

So i want to change the select options dynamically from another callback JS.

What i do from the callback is this:

select.options = new_data.data;


But after doing this, the values dont actually change on screen. i tried calling "change.emit()". doesn't help.

What should i do to “force” the change?

Thanks!

–

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/df69fb37-ca94-40b6-a42e-d2a946e67457%40continuum.io.

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

⌁   Link to post

End of archived discussion · Replies are disabled