bokeh - Enable pan/zoom while using hovertool -


i've been trying enable panning/zooming while hover tool enabled using example - http://bokeh.pydata.org/en/latest/docs/user_guide/tools.html#hover-tool. but, can't seem 2 work together.

are mutually exclusive tools?

i specifying tools in wrong place. here's working example if else trying same -

from bokeh.plotting import figure, output_file, show, columndatasource bokeh.models import hovertool  output_file("toolbar.html")  source = columndatasource(     data=dict(         x=[1,2,3,4,5],         y=[2,5,8,2,7],         desc=['a', 'b', 'c', 'd', 'e'],     ) )  hover = hovertool(     tooltips = [         ("index", "$index"),         ("(x,y)", "($x, $y)"),         ("desc", "@desc"),     ] )  p = figure(plot_width=400, plot_height=400, tools=[hover, 'pan', 'wheel_zoom'],            title="mouse on dots")  p.circle('x', 'y', size=20, source=source)  show(p) 

Comments