def __get_pure_state__(self):
        d = self.__dict__.copy()
        for attr in ('scene', '_is_running', '__sync_trait__',
                     '__traits_listener__', '_icon_path',
                     '_menu', '_HideShowAction', 'menu_helper',
                     'parent', 'parent_', '_module_view',
                     '_view_filename', 'mlab_source'):
            d.pop(attr, None)
        return d
Method used by the state_pickler.
dataset/ETHPy150Open enthought/mayavi/mayavi/core/base.py/Base.__get_pure_state__