Thanks @philippjfr, this sounds good. I however get an error that description
is an unexpected attribute
in HoverTools. Could it be a version issue? Here is my attempt:
import holoviews as hv
from bokeh.models import HoverTool
hv.extension('bokeh')
hover = HoverTool(description='Custom Tooltip', tooltips=[('x', '@x'), ('y', '@y')])
hv.Points([(0, 0), (1, 1)]).opts(tools=[hover], size=10)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-2-afc1058f0e25> in <module>
----> 1 hover = HoverTool(description='Custom Tooltip', tooltips=[('x', '@x'), ('y', '@y')])
2 hv.Points([(0, 0), (1, 1)]).opts(tools=[hover], size=10)
/home/conda/store/205cb5b9b1c0c2c2d9f3a4e3a712117290aeaaebd2fc5b42b587de7d9552b398-pangeo/lib/python3.8/site-packages/bokeh/model.py in __init__(self, **kwargs)
233 kwargs.pop("id", None)
234
--> 235 super().__init__(**kwargs)
236 default_theme.apply_to_model(self)
237
/home/conda/store/205cb5b9b1c0c2c2d9f3a4e3a712117290aeaaebd2fc5b42b587de7d9552b398-pangeo/lib/python3.8/site-packages/bokeh/core/has_props.py in __init__(self, **properties)
247
248 for name, value in properties.items():
--> 249 setattr(self, name, value)
250
251 self._initialized = True
/home/conda/store/205cb5b9b1c0c2c2d9f3a4e3a712117290aeaaebd2fc5b42b587de7d9552b398-pangeo/lib/python3.8/site-packages/bokeh/core/has_props.py in __setattr__(self, name, value)
283 matches, text = props, "possible"
284
--> 285 raise AttributeError("unexpected attribute '%s' to %s, %s attributes are %s" %
286 (name, self.__class__.__name__, text, nice_join(matches)))
287
AttributeError: unexpected attribute 'description' to HoverTool, possible attributes are anchor, attachment, callback, formatters, js_event_callbacks, js_property_callbacks, line_policy, mode, muted_policy, name, names, point_policy, renderers, show_arrow, subscribed_events, tags, toggleable or tooltips
bokeh version:
bokeh 2.2.3 py38h578d9bd_0 conda-forge
holoviews version:
holoviews 1.14.1 pyhd3deb0d_0 conda-forge