Can this be supported?
import param
class MyParams(param.Parameterized):
x = param.Number(bounds=[(-10.0, 0.0), (10.0, 20.0)])
Can this be supported?
import param
class MyParams(param.Parameterized):
x = param.Number(bounds=[(-10.0, 0.0), (10.0, 20.0)])
How about this?
import param
class MyParams(param.Parameterized):
x = param.Number(bounds=(-10.0,20.0))
@param.depends('x', watch = True, on_init = True)
def slot_x(self):
if self.x > 0 and self.x < 5:
self.x = 0
elif self.x >= 5 and self. x < 10:
self.x = 10