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

Streams not working with overlays when using bind or streams dict #4955

Closed
jlstevens opened this issue May 27, 2021 · 1 comment · Fixed by #4956
Closed

Streams not working with overlays when using bind or streams dict #4955

jlstevens opened this issue May 27, 2021 · 1 comment · Fixed by #4956
Labels
type: bug Something isn't correct or isn't working
Milestone

Comments

@jlstevens
Copy link
Contributor

This works when no overlay is involved:

tap = hv.streams.Tap()
def test(x, y):
    return hv.VLine(x or 0)
dmap = hv.DynamicMap(pn.bind(test, x=tap.param.x, y=tap.param.y))
hv.Curve([1, 2, 3])  * dmap

image

But introducing an overlay breaks it:

tap = hv.streams.Tap()
def test(x, y):
    return hv.Curve([1, 2, 3]) * hv.VLine(x or 0)
dmap = hv.DynamicMap(pn.bind(test, x=tap.param.x, y=tap.param.y))
dmap

Using the streams dictionary has the same issue:

tap = hv.streams.Tap()
def test(x, y):
    return hv.Curve([1, 2, 3]) * hv.VLine(x or 0)
dmap = hv.DynamicMap(test, streams=dict(x=tap.param.x, y=tap.param.y))
dmap

The old streams list approach is also still working.

>>> param.__version__, bokeh.__version__, hv.__version__
('1.10.1', '2.3.1', '1.14.4')
@jlstevens jlstevens added TRIAGE Needs triaging type: bug Something isn't correct or isn't working and removed TRIAGE Needs triaging labels May 27, 2021
@jlstevens jlstevens added this to the v1.14.x milestone May 27, 2021
@philippjfr philippjfr modified the milestones: v1.14.x, v2.0 May 27, 2021
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