Skip to content

Commit

Permalink
Choose correct layer style widget for scatter layers in the Jupyter v…
Browse files Browse the repository at this point in the history
…olume viewer.
  • Loading branch information
Carifio24 committed Aug 12, 2024
1 parent a177e17 commit e09bda9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion glue_vispy_viewers/volume/jupyter/volume_viewer.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import os

from glue_jupyter.view import IPyWidgetView

from ...scatter.layer_artist import ScatterLayerArtist
from ..layer_artist import VolumeLayerArtist
from ..volume_viewer import VispyVolumeViewerMixin
from .viewer_state_widget import Volume3DViewerStateWidget
from ...scatter.jupyter.layer_state_widget import Scatter3DLayerStateWidget
from .layer_state_widget import Volume3DLayerStateWidget
from ...common.jupyter.toolbar import VispyJupyterToolbar

Expand All @@ -12,8 +16,9 @@
class JupyterVispyVolumeViewer(VispyVolumeViewerMixin, IPyWidgetView):

_options_cls = Volume3DViewerStateWidget
_layer_style_widget_cls = Volume3DLayerStateWidget
_toolbar_cls = VispyJupyterToolbar
_layer_style_widget_cls = {VolumeLayerArtist: Volume3DLayerStateWidget,
ScatterLayerArtist: Scatter3DLayerStateWidget}

def __init__(self, *args, **kwargs):
# Vispy and jupyter_rfb don't work correctly on Linux unless DISPLAY is set
Expand Down

0 comments on commit e09bda9

Please sign in to comment.