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

Add ability to set active tools #3251

Merged
merged 3 commits into from
Dec 7, 2018
Merged

Add ability to set active tools #3251

merged 3 commits into from
Dec 7, 2018

Conversation

philippjfr
Copy link
Member

@philippjfr philippjfr commented Dec 3, 2018

This PR provides control over the active tools on a plot via the active_tools option which should be a list of tools that will be activated. The list can be specified as strings or as the tool instances being activated.

Note that currently bokeh does not allow setting active tools for a merged toolbar, so for the option to work on a Layout or Grid the merge_tools option has to be disabled.

@@ -39,6 +40,46 @@
bokeh_version = LooseVersion(bokeh.__version__) # noqa


TOOL_TYPES = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shame we have to list the names like this. It would be good to get this from bokeh if possible. And if it isn't possible, I feel like this is information bokeh ought to provide...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer to list these explicitly, at least for now. In my next bokeh tool PR I might bring up adding this directly to bokeh.

@philippjfr philippjfr force-pushed the active_tools branch 2 times, most recently from de39bdd to 31cb6ee Compare December 6, 2018 18:11
@jlstevens
Copy link
Contributor

Very happy to finally be able to have this long requested feature! Merging.

@jlstevens jlstevens merged commit 964b82f into master Dec 7, 2018
@philippjfr philippjfr deleted the active_tools branch December 13, 2018 04:21
Copy link

This pull request 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 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants