def _slice_bounded(self, tuple_key):
        cloned = self.clone(self)
        for i, slc in enumerate(tuple_key):
            (start, stop) = slc.start, slc.stop
            if start is not None and start < cloned.kdims[i].range[0]:
                raise Exception("Requested slice below defined dimension range.")
            if stop is not None and stop > cloned.kdims[i].range[1]:
                raise Exception("Requested slice above defined dimension range.")
            cloned.kdims[i].soft_range = (start, stop)
        return cloned
Slices bounded DynamicMaps by setting the soft_ranges on key dimensions.
dataset/ETHPy150Open ioam/holoviews/holoviews/core/spaces.py/DynamicMap._slice_bounded