From 7359dba6b8ebd13cf9cd0fe09457a1cea59c6bb5 Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Fri, 16 Aug 2024 12:17:10 +0100 Subject: [PATCH] Remove __gluestate__ and __setgluestate__ from base Application class since it is different between Jupyter and Qt glue --- glue/core/application_base.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/glue/core/application_base.py b/glue/core/application_base.py index 03088a025..93e050fe7 100644 --- a/glue/core/application_base.py +++ b/glue/core/application_base.py @@ -350,18 +350,3 @@ def set_data_color(self, color, alpha): for data in self.data_collection: data.style.color = color data.style.alpha = alpha - - def __gluestate__(self, context): - viewers = [list(map(context.id, tab)) for tab in self.viewers] - data = self.session.data_collection - from glue.main import _loaded_plugins - return dict(session=context.id(self.session), viewers=viewers, - data=context.id(data), plugins=_loaded_plugins) - - @classmethod - def __setgluestate__(cls, rec, context): - self = cls(data_collection=context.object(rec['data'])) - # manually register the newly-created session, which - # the viewers need - context.register_object(rec['session'], self.session) - return self