def METHOD_NAME(self, event):
    value = event.new
    low, high = value
    low = max(low, 0)
    high = min(high, 1)
    self.plot.index.metadata["selections"] = (low, high)
    self.value = (low, high)