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

Bounds example doesn't work with BoundsXY #1789

Closed
timothydmorton opened this issue Aug 4, 2017 · 6 comments
Closed

Bounds example doesn't work with BoundsXY #1789

timothydmorton opened this issue Aug 4, 2017 · 6 comments
Labels
tag: backend: bokeh type: bug Something isn't correct or isn't working
Milestone

Comments

@timothydmorton
Copy link

Trying to use the bounds example for reference and holoviews is telling me I should use BoundsXY because Bounds is deprecated. But when I do that replacement in the demo code, it doesn't work. No error as far as I can tell, but it doesn't work.

@philippjfr
Copy link
Member

philippjfr commented Aug 4, 2017

Looks like the BoundsXY callback was never registered:

https://github.com/ioam/holoviews/blob/master/holoviews/plotting/bokeh/callbacks.py#L767

A straightforward workaround until we fix this is to register the callback yourself:

from holoviews.plotting.bokeh.callbacks import BoundsCallback
hv.streams.Stream._callbacks['bokeh'][hv.streams.BoundsXY]      = BoundsCallback

@timothydmorton
Copy link
Author

ok, so that worked on an example, but it doesn't seem to work on a datashaded image. That is, I get the persistent black box when I use Bounds but not BoundsXY. Is there something additional that needs to be registered for an RGB or something?

@timothydmorton
Copy link
Author

oh wait, maybe this is not related to this; I'm getting IOPub data rate errors from my notebook, so maybe that's why it's not working properly.

@timothydmorton
Copy link
Author

OK, my code is working with BoundsXY now.

@philippjfr philippjfr added type: bug Something isn't correct or isn't working tag: backend: bokeh labels Aug 4, 2017
@philippjfr philippjfr added this to the v1.9 milestone Aug 4, 2017
@philippjfr
Copy link
Member

Added the stream in the PR above. Closing.

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 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tag: backend: bokeh type: bug Something isn't correct or isn't working
Projects
None yet
Development

No branches or pull requests

2 participants