callback already ran or was already removed, cannot be removed

Hi,

I know there was a feature that was depreciated in Bokeh’s latest version.

BokehDeprecationWarning: The ability to remove a callback function using its value was deprecated in Bokeh 0.12.15 and will be removed, use a value returned from the function that adds a callback instead.

I’m trying to add a callback for the Play/Pause button similar to the below example.

https://github.com/ioam/holoviews/blob/master/examples/reference/apps/bokeh/player.py

How should I modify the callback function to animate the graph?

Thanks.

Hi,

Callbacks must now be removed by ID (which is returned when they are first added):

  https://github.com/bokeh/bokeh/blob/master/examples/app/gapminder/main.py#L80

Thanks,

Bryan

···

On Nov 22, 2018, at 20:51, [email protected] wrote:

Hi,

I know there was a feature that was depreciated in Bokeh's latest version.

BokehDeprecationWarning: The ability to remove a callback function using its value was deprecated in Bokeh 0.12.15 and will be removed, use a value returned from the function that adds a callback instead.

I'm trying to add a callback for the Play/Pause button similar to the below example.

https://github.com/ioam/holoviews/blob/master/examples/reference/apps/bokeh/player.py

How should I modify the callback function to animate the graph?

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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/bf3fe450-8f42-4df4-ad18-cd531b571082%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi,

It works perfectly. Thanks.

···

On Monday, November 26, 2018 at 2:32:16 PM UTC-8, Bryan Van de ven wrote:

Hi,

Callbacks must now be removed by ID (which is returned when they are first added):

    [https://github.com/bokeh/bokeh/blob/master/examples/app/gapminder/main.py#L80](https://github.com/bokeh/bokeh/blob/master/examples/app/gapminder/main.py#L80)

Thanks,

Bryan

On Nov 22, 2018, at 20:51, [email protected] wrote:

Hi,

I know there was a feature that was depreciated in Bokeh’s latest version.

BokehDeprecationWarning: The ability to remove a callback function using its value was deprecated in Bokeh 0.12.15 and will be removed, use a value returned from the function that adds a callback instead.

I’m trying to add a callback for the Play/Pause button similar to the below example.

https://github.com/ioam/holoviews/blob/master/examples/reference/apps/bokeh/player.py

How should I modify the callback function to animate the graph?

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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/bf3fe450-8f42-4df4-ad18-cd531b571082%40continuum.io.

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