def __init__(self, name, array, **kwargs):
        """Create a new Component instance given its name and array."""
        super(Component, self).__init__(name=name, array=array, **kwargs)

        if self.min is None:
            self.min = np.min(self.array) if not isinstance(self.array, Widget) else np.min(self.array.array)

        if self.max is None:
            self.max = np.max(self.array) if not isinstance(self.array, Widget) else np.max(self.array.array)
Create a new Component instance given its name and array.
ipygany/ipygany.py