Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New and Unexpected Warning: Tool of type could not be found and could not be activated by default. #5614

Closed
MikeB2019x opened this issue Feb 7, 2023 · 2 comments · Fixed by #5616
Labels
type: bug Something isn't correct or isn't working

Comments

@MikeB2019x
Copy link

ALL software version info

MacOS Ventura 13.2
holoviews 1.15.4 pyhd8ed1ab_0 conda-forge
jupyter 1.0.0 py310h2ec42d9_8 conda-forge

Description of expected behavior and the observed behavior

Trying to specify default_tools in Scatter plot opts. Expect no warning. In response to the following Scatter plot of a 99K x 8 matrix of doubles:

(hv.Scatter(Xpca.loc[~Xpca.node.isin(['n0','n1','n57917'])], 
             kdims='x', vdims=['y','node','id','labels','date','in_deg','out_deg','tot_edge'])
            .opts(default_tools=['hover','save','box_zoom','reset'],
                  height=800, width=900, color='tot_edge', xlabel='PC1',ylabel='PC2',
                  colorbar=True, clim=(0,10), cmap='jet',show_grid=True
                 )
 )

Get the following warning:

WARNING:param.OverlayPlot09107: Tool of type 'pan' could not be found and could not be activated by default.
WARNING:param.OverlayPlot09107: Tool of type 'wheel_zoom' could not be found and could not be activated by default.

Complete, minimal, self-contained example code that reproduces the issue

Data:

x y node labels date id in_deg out_deg tot_edge
6.28234 -3.198913 n2 :TRANSACTION 2017-01-02 100276789 1 0 1
6.071874 -3.812788 n3 :TRANSACTION 2017-01-02 100276792 1 0 1
5.716742 3.669202 n4 :TRANSACTION 2017-01-02 100276813 2 0 2
5.612813 -0.583601 n5 :TRANSACTION 2017-01-02 100276814 2 0 2
5.656079 -0.364387 n6 :TRANSACTION 2017-01-02 100276822 2 0 2

Code:

(hv.Scatter(data, kdims='x', vdims=['y','node','id','labels','date','in_deg','out_deg','tot_edge'])
          .opts(default_tools=['hover','save','box_zoom','reset'],
                height=800, width=900, color='tot_edge', xlabel='PC1',ylabel='PC2',
                colorbar=True, clim=(0,10), cmap='jet',show_grid=True
               )
)

Stack traceback and/or browser JavaScript console output

Screenshots or screencasts of the bug in action

@hoxbro hoxbro added the type: bug Something isn't correct or isn't working label Feb 8, 2023
@hoxbro
Copy link
Member

hoxbro commented Feb 8, 2023

This is reproducible by the following and is related to the change made in #5480:

import holoviews as hv
hv.extension("bokeh")
hv.Scatter([]).opts(default_tools=[])

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants