-
-
Notifications
You must be signed in to change notification settings - Fork 404
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 support to maintain backend information in an element #1801
Comments
It would also be useful to be able to query which backend(s) is attached to a particular hv object. |
Generally we try to keep our objects separate from the backends - the only thing that can be backend specific are the custom option trees that are associated with the objects. As a result, I'm not sure whether this proposal makes sense but maybe @philippjfr sees a concrete way to implement this suggestion in a way that integrates well with everything else. |
Can't this be an option, conceptually like any other? The option trees are already backend specific; there could just be an optional label that declares that this particular backend should be used by default for this object if not otherwise declared with %%output, etc. |
I think this makes sense on the opts method (and possible the magic too), currently the |
It might not be too hard to implement although I rather not add anything new to the options system. My worry is that supporting this makes both specification and parsing harder than it already is now: there are already more enough issues to worry about without making it more complicated than it already is. |
I don't quite see the issue, it's both easy to implement (literally just needs to pass backend to the |
I can make a PR attempting this to see how it goes and so we can discuss this further. |
I'd like to be able to set options for both 'matplotlib' AND 'bokeh' for the same object. |
Oh, have we been confused about what you are requesting then? Your latest comment sounds like a duplicate of #803. |
I don't think so, I was the one to originally suggest the proposal outlined here, #803 is specifically about the magics while this is about |
Just looked at #803 - sounds confusing. but setting the both plot options
What got me thinking about it was that I wanted bokeh in the notebook |
This has been addressed, both |
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. |
for example,
element.opts(plot=dict(height=100), backend='bokeh')
The text was updated successfully, but these errors were encountered: