On Dec 31, 2015, at 8:30 AM, kynor.shop@gmail.com wrote:
Hi Bryan,
Thanks for your note. This seems to be getting more complicated.... I tried running the script on another computer and am now getting a different error (below). Seems like something is wrong with the add_tools function or there is a problem with duplication of the name 'hover'?
File "/Users/davidkynor/anaconda/lib/python2.7/site-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 699, in runfile
execfile(filename, namespace)
File "/Users/davidkynor/anaconda/lib/python2.7/site-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 81, in execfile
builtins.execfile(filename, *where)
File "/Users/davidkynor/Desktop/DBK Project Funding/dbkFinance.py", line 125, in <module>
p3.add_tools(hover())
TypeError: 'HoverTool' object is not callable
This error occurs both with and without the {int} specification. The original code did not change......
On Wednesday, December 30, 2015 at 8:17:23 PM UTC-5, d...@creare.com wrote:
I am trying to add a hover tool that has a custom tooltip:
hover = HoverTool(
tooltips=[
("Funding", "(@y{int})")
]
)
However, when I add the hover tool to the list of tools associated with the plot I get a default tooltip associated with the HoverTool rather than my tooltip. I am adding the HoverTool as follows:
p3.add_tools(hover())
Could someone please tell me what I am doing wrong?
Thanks!
--
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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/5d929d9f-f2cb-4d8d-aa2a-b0f50aac6d2b%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.