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

.opts does not work with param.rx objects #6334

Open
LecrisUT opened this issue Jul 21, 2024 · 0 comments
Open

.opts does not work with param.rx objects #6334

LecrisUT opened this issue Jul 21, 2024 · 0 comments

Comments

@LecrisUT
Copy link
Contributor

Specifically, as clone=False (like dict.update interface) does not work. Here is a MWE:

import holoviews
import param

holoviews.extension("bokeh")

# Not using `param.rx`, everything works fine
# layout = holoviews.Layout()
# overlay = holoviews.Overlay()
layout = param.rx(holoviews.Layout())
overlay = param.rx(holoviews.Overlay())

overlay *= holoviews.Curve([0, 1, 2], label="One curve")
overlay *= holoviews.Curve([2, 1, 0], label="Other curve")

# This does not work with `param.rx`
# overlay.opts(xlabel="xlabel here")
# This does work though which can be a workaround
overlay = overlay.opts(ylabel="ylabel here")

layout += overlay

# But this is needed, and it does not work because of the previous issue
layout[0,0].opts(show_legend=False)

layout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant