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
jslink/jscallback fails on CrossSelector #1478
Comments
Has anyone else tried to reproduce, or is there some workaround for this? Thanks! |
There probably isn't a great solution for now. The CrossSelector widget is a so called |
A hacky workaround in the mean time that works for me is to As you mentioned some kind of notification that these calls are unsupported would certainly help out. |
Same for the DataFrame & Tabulator widgets: df = pd.DataFrame({'x':[1,2,3],'y':[0,0.5,1]}).set_index('x')
plot = pn.pane.HoloViews(hv.Curve(df))
frame = pn.widgets.DataFrame(value=df,height=150)
tab = pn.widgets.Tabulator(value=df)
slider = pn.widgets.IntSlider()
# slider.jslink(plot,code={'value':"console.log('slider test')"}) # works
# frame.jslink(plot,code={'value':"console.log('frame test')"}) # doesn't work
# tab.jslink(plot,code={'value':"console.log('tab test')"}) # doesn't work
pn.Row(plot,pn.Column(frame,tab,slider)) Versions: The layout also fails to render when executing the jslink. 2023-08-21-13-53-19.mp4 |
This appears to be unrelated to #1346.
I want to create a js callback that fires whenever the value of CrossSelector changes. I figured this kind of thing should work, as an example:
However, the widget doesn't render at all. I get this stack in the browser logs:
I expected that
jscallback
would work the same way on CrossSelector as it does on other widgets, say, Toggle:To work around this I tried to use
jslink
, but found identical behavior on CrossSelector and Toggle.Are there any workarounds to this, or am I misunderstanding
jscallback
/jslink
somehow?Thanks!
Software version info
panel 0.9.7
bokeh 2.1.1
Ubuntu 16.04
Google Chrome
Python 3.7.7
The text was updated successfully, but these errors were encountered: