

def distribution(self, dim=None, mdims=[], **kwargs):
    from ..interface.seaborn import Distribution
    if (dim is None):
        if self._element.vdims:
            dim = self._element.vdims[0]
        else:
            raise Exception('Must supply an explicit value dimension if no value dimensions are defined ')
    if mdims:
        reindexed = self._element.reindex(mdims, [dim])
        return reindexed.groupby(mdims, HoloMap, Distribution, **reindexed)
    else:
        element = self._element
        params = dict(vdims=[element.get_dimension(dim)], label=element.label)
        if (element.group != element.params()['group'].default):
            params['group'] = element.group
        return Distribution((element.dimension_values(dim),), **dict(params, **kwargs))

dataset/ETHPy150Open ioam/holoviews/holoviews/element/__init__.py ElementConversion.distribution/VarMisuse@105/151 `kwargs`->`reindexed`