☰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] CustomJS Callback - Get old value ?

Community Support
Bryan
Bryan

Hi,

It's not currently possible. You would need to store the the current value somewhere (on window, or Bokeh, or wherever else that is convenient) and then refer to that as the "last" value in a subsequent call.

Thanks,

Bryan

···

On Jul 29, 2018, at 03:57, phuebu via Bokeh Discussion - Public <bokeh@continuum.io> wrote:

Hi,

When using callbacks from on_change we get given both the old value and the new value of the attribute which has changed.

Is it also possible to get the old value of an attribute when using CustomJS callbacks?

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/a892c093-c9cd-403f-b0a1-67770f9687dc%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