

def __copy__(self):
    '\n        Copying a CustomViewer freezes custom settings at their current value,\n        decoupling them from future changes to the main viewer\n        '
    result = type(self)(self.widget)
    result.state = copy(self.state)
    for (k, v) in self.__dict__.items():
        if (not k.startswith('_')):
            result.__dict__[k] = v
    for k in self._settings:
        result._settings[k] = copy(self._settings[k])
    return result

dataset/ETHPy150Open glue-viz/glue/glue/viewers/custom/qt/custom_viewer.py CustomViewer.__copy__/original