Hi, I have a panel app in which I use Parameterized classes
I would like to know if it is possible to make a parameter of this class depend on a standalone widget defined, for instance like this:
pth = pn.widgets.TextInput(name='Model Output Directory', value='../demos/outdata-rio')
I found that decorating an update method with pn.depends
doesn’t work because it wants to pass the widget as a parameter and thus ends up overriding self
.
decorating with param.depends
does not work either as it can only declare dependencies to class parameters.
I have this global widget because It needs to be visible to more than one parameterized class. But I can’t seem to make them (the classes) to update when this global widget changes.