AttributeError: 'RadioButtonGroup' object has no attribute 'js_on_change'

Hello,

Has anyone faced this?

Thanks,

Pratik

Hi,

RadioButtonGroup definitely does have this method:

  In [1]: from bokeh.models import RadioButtonGroup

  In [2]: RadioButtonGroup.js_on_change?
  Signature: RadioButtonGroup.js_on_change(self, event, *callbacks)
  Docstring:
  Attach a CustomJS callback to an arbitrary BokehJS model event.

It was added in Bokeh 0.12.4, so the most likely explanation is that you need to upgrade the version of Bokeh you have installed.

Thanks,

Bryan

···

On Feb 1, 2017, at 2:26 PM, [email protected] wrote:

Hello,

Has anyone faced this?

Thanks,

Pratik

--
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/aa823b69-0f8d-4a84-b344-6099a7d9804f%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

But can we update the values of RadioButtonGroup, as I tried and it didn’t work for me? Can you provide a snippet or point me to an example? I would like to update RadioButtonGroup values based on change in values using Select() widget.

···

On Wednesday, 1 February 2017 16:53:57 UTC-5, Bryan Van de ven wrote:

Hi,

RadioButtonGroup definitely does have this method:

    In [1]: from bokeh.models import RadioButtonGroup



    In [2]: RadioButtonGroup.js_on_change?

    Signature: RadioButtonGroup.js_on_change(self, event, *callbacks)

    Docstring:

    Attach a CustomJS callback to an arbitrary BokehJS model event.

It was added in Bokeh 0.12.4, so the most likely explanation is that you need to upgrade the version of Bokeh you have installed.

Thanks,

Bryan

On Feb 1, 2017, at 2:26 PM, [email protected] wrote:

Hello,

Has anyone faced this?

Thanks,

Pratik


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/aa823b69-0f8d-4a84-b344-6099a7d9804f%40continuum.io.

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