panel icon indicating copy to clipboard operation
panel copied to clipboard

programatically changing name of select widget does not update widget in 1.4.0

Open ATL2001 opened this issue 1 year ago • 3 comments
trafficstars

ALL software version info

panel 1.4.0 bokeh 3.4.0

I just upgraded one of my environments to 1.4.0 today (which has some really great stuff, thanks!!) and I'm seeing some odd behavior now. When using panel 1.3.8 if I updated the name of a select the widget on my screen instantly refreshed with the new name, but in 1.4.0 when I update the name property of the widget it is no longer showing the new name on the select widget. Also, this doesn't appear to be related to the notebook (I noticed it in a normal browser environment to begin with, but it shows up in VS code and jupyterlab as well)

Complete, minimal, self-contained example code that reproduces the issue

import panel as pn
pn.extension()
pn.__version__
s_widget = pn.widgets.Select(name='Study', options=['Biology', 'Chemistry', 'Physics'])
s_widget
s_widget.name = "updatedname"

Screenshots or screencasts of the bug in action

image image

  • [ ] I may be interested in making a pull request to address this

ATL2001 avatar Apr 03 '24 21:04 ATL2001

@mattpap probably a Bokeh regression?

philippjfr avatar Apr 04 '24 08:04 philippjfr

It's InputWidget.title in bokeh and its change handler regressed in bokeh 3.4.

mattpap avatar Apr 04 '24 08:04 mattpap

Would be nice to fix for bokeh 3.4.1

philippjfr avatar Apr 04 '24 10:04 philippjfr