☰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

Bokeh table - editable source.selected.js_on_change

Community Supportcustomjsbokehjsbokeh
Zana
Zana

Hi,

I have a bokeh DataTable that is editable. But when the user edits the table, they need to press enter, enter the value click enter again and then click down and back up again on the row it edited for it to change the other columns. I am running the changes like this:

        source.selected.js_on_change('indices', CustomJS(args=dict(source = source, 
                                                                values = values), code="""

Am I doing this wrong? The user thinks its a bit tedious to have to click on a row edit, click down and up again for it to change. Is there another way of doing this? I am running a bokeh server, so could change to on_change instead?

⌁   Link to post
Zana
Zana

Hi,

I started by trying the first solution here:

        source.js_on_change('patching', CustomJS(args=dict(source = source, 
                                                                values = values), code="""

And that worked perfectly. Thank you very much.
I’m too lazy to try the second one, but I am sure it works too #iamalazyprogrammer :stuck_out_tongue_winking_eye:

⌁   Link to post

End of archived discussion · Replies are disabled