I am very happy because MultiSelect is fixed, but now I can't get the selected values, it always returns the initial selection set with 'value' argument. Thanks in advance.
Hi,
I am afraid you will have to be more specific (e.g. provide some actual code to investigate). I just tried the following code on OS X / Safari and it worked as expected (screenshot also attached below, showing browser console output after making several selections):
from [bokeh.io](http://bokeh.io) import output_file, show
from bokeh.models import MultiSelect, CustomJS
ms = MultiSelect(title="MS", options=["foo", "bar", "baz", "quux"])
ms.callback = CustomJS(code="""
console.log(cb_obj.get('value'))
""")
output_file("ms.html")
show(ms)
If this code does not work for then more information about your platform and browser will be needed as well (it’s actually always a good idea to just always include this information in any kind or issue report or question from the very start).
···
On Feb 5, 2016, at 3:17 PM, [email protected] wrote:
I am very happy because MultiSelect is fixed, but now I can’t get the selected values, it always returns the initial selection set with ‘value’ argument. Thanks in advance.
–
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/ba14a9c2-4cc9-4b36-b7b6-303a1902c090%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Oh, sorry for the lack of details, i have the following code:
It is shown correctly
Then i have a commit button, here is what i do in the on_click callback:
value = self.letters.value
print(“Options are: {}\nSelected values are:\n{}”.format(self.letters.options, value))
and the output:
it always returns the initial selection. I am using Windows 8.1 Pro with Firefox 42.0 and IE 11.0
Juan,
I think you have found a bug. I am
looking at the multiselect on the docs:
···
http://bokeh.pydata.org/en/latest/docs/user_guide/interaction.html#multiselect
Chang ing
the selected value d oesn’t update the html selected
flags.
Can you file an issue on gituhb?
Sincerely,
Sarah Bird
On 2/8/16 8:12 AM, Juan Manuel Bermúdez
Cabrera wrote:
Oh,
sorry for the lack of details, i have the following code:
It
is shown correctly
Then
i have a commit button, here is what i do in the on_click
callback:
value
= self.letters.value
print("Options
are: {}\nSelected values
are:\n{}".format(self.letters.options, value))
and
the output:
it
always returns the initial selection. I am using Windows 8.1
Pro with Firefox 42.0 and IE 11.0
Thank you for answering so quickly.
–
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/81c80a12-eb11-4397-90d9-3e0dbe2fdfd9%40continuum.io?utm_medium=email&utm_source=footer) .
For more options, visit .
https://groups.google.com/a/continuum.io/d/msgid/bokeh/81c80a12-eb11-4397-90d9-3e0dbe2fdfd9%40continuum.io
https://groups.google.com/a/continuum.io/d/optout
Juan,
Please see the following link: Issue #3871 on the Bokeh Github. The issue seems to have been resolved through PR 3873 and will be added to version 0.12.
Best,
Peter
···
On Friday, February 5, 2016 at 4:18:41 PM UTC-5, Juan Manuel Bermúdez Cabrera wrote:
I am very happy because MultiSelect is fixed, but now I can’t get the selected values, it always returns the initial selection set with ‘value’ argument. Thanks in advance.
Thanks everyone for the bug detection and its fix, I will check it out immediately.