From 3412f7e53c6a8ee80e4c16d01d0edc17a3ee953c Mon Sep 17 00:00:00 2001 From: Carifio24 Date: Tue, 3 Oct 2023 18:39:35 -0400 Subject: [PATCH] Don't try to import glue_qt and glue_jupyter together. --- glue_plotly/common/common.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/glue_plotly/common/common.py b/glue_plotly/common/common.py index 9052c38..97adc82 100644 --- a/glue_plotly/common/common.py +++ b/glue_plotly/common/common.py @@ -5,9 +5,12 @@ from glue.core import BaseData try: from glue_qt.viewers.common.data_viewer import DataViewer - from glue_jupyter.bqplot.common import BqplotBaseView except ImportError: DataViewer = type(None) + +try: + from glue_jupyter.bqplot.common import BqplotBaseView +except ImportError: BqplotBaseView = type(None) from glue_plotly.utils import is_rgba_hex, opacity_value_string, rgba_hex_to_rgb_hex