From b26dd562f7237f3f331aab2c811346bec34e2eb3 Mon Sep 17 00:00:00 2001 From: Derek Homeier Date: Wed, 31 Jan 2024 23:01:07 +0100 Subject: [PATCH] Set `self._roi` to None on `deactivate` --- glue_jupyter/bqplot/common/tools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glue_jupyter/bqplot/common/tools.py b/glue_jupyter/bqplot/common/tools.py index 46a0b93c..c301a7dd 100644 --- a/glue_jupyter/bqplot/common/tools.py +++ b/glue_jupyter/bqplot/common/tools.py @@ -48,6 +48,8 @@ def activate(self): def deactivate(self): self.viewer._mouse_interact.next = None + if hasattr(self, '_roi'): + self._roi = None class BqplotSelectionTool(InteractCheckableTool):