Hovertool callback source selection for multi-plot graph
<p>I currently use bokeh version 0.12.2. I am plotting a graph with two series of circles.</p>

<pre><code>graph1 = figure(plot_width=800, plot_height=800)
graph1.circle('fpr1', 'tpr1', color='red', source=source)
graph1.circle('fpr2', 'tpr2', color='blue', source=source)
</code></pre>

<p>Now, I would like to add a HoverTool which is done with :</p>

<pre><code>code = "source.set('selected', cb_data['index']);"
callback = CustomJS(args={'source': source}, code=code)
hover1 = HoverTool(
        tooltips=[
            ....
        ],
        callback=callback,
    )
graph1.add_tools(hover1)
</code></pre>

<p>The behavior of this code is that when I put mouse cursor hover a red circle, the callback is called and the tooltip is displayed. However, when I hover a blue circle, the tooltip is displayed but the callback is not called. How to fix that ?</p>

<p>I'm afraid this is a <a href="https://github.com/bokeh/bokeh/issues/2136" rel="nofollow">known bug</a>. There is a <a href="https://github.com/bokeh/bokeh/pull/5158" rel="nofollow">"WIP" PR to fix it</a> but it will not go in this weeks <code>0.12.3</code> release. It should be in <code>0.12.4</code>, though. </p>

javascript python bokeh