How can I use c = param.Boolean(False)
in dependency decorator without using string notation ‘c’. I mean Is there any way to use c other than string ‘c’ ?
import param
import panel as pn
class Example(param.Parameterized):
c = param.Boolean(False)
def __init__(self):
super().__init__()
@param.depends(c, watch=True) # any way rather than 'c' ??
def sum(self):
print("***", self.c)
if self.c:
return True
else:
return False
example = Example()
pn.Row(example.param, pn.panel(example.sum)).servable()