Skip to content

Commit

Permalink
Merge pull request #402 from kecnry/hist-in-registry
Browse files Browse the repository at this point in the history
add histogram, scatter, and volume viewers to registry
  • Loading branch information
astrofrog authored Oct 26, 2023
2 parents 0a1211a + bb511ad commit f8e24b8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions glue_jupyter/bqplot/histogram/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
from .layer_artist import BqplotHistogramLayerArtist
from glue_jupyter.common.state_widgets.layer_histogram import HistogramLayerStateWidget
from glue_jupyter.common.state_widgets.viewer_histogram import HistogramViewerStateWidget
from glue_jupyter.registries import viewer_registry

__all__ = ['BqplotHistogramView']


@viewer_registry("histogram")
class BqplotHistogramView(BqplotBaseView):

allow_duplicate_data = False
Expand Down
2 changes: 2 additions & 0 deletions glue_jupyter/bqplot/image/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
from glue_jupyter.common.state_widgets.layer_image import (ImageLayerStateWidget,
ImageSubsetLayerStateWidget)
from glue_jupyter.common.state_widgets.viewer_image import ImageViewerStateWidget
from glue_jupyter.registries import viewer_registry

__all__ = ['BqplotImageView']


@viewer_registry("image")
class BqplotImageView(BqplotBaseView):

allow_duplicate_data = False
Expand Down
2 changes: 2 additions & 0 deletions glue_jupyter/bqplot/profile/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@

from glue_jupyter.common.state_widgets.layer_profile import ProfileLayerStateWidget
from glue_jupyter.common.state_widgets.viewer_profile import ProfileViewerStateWidget
from glue_jupyter.registries import viewer_registry

__all__ = ['BqplotProfileView']


@viewer_registry("profile")
class BqplotProfileView(BqplotBaseView):

allow_duplicate_data = False
Expand Down
2 changes: 2 additions & 0 deletions glue_jupyter/ipyvolume/volume/viewer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from glue_jupyter.common.state3d import VolumeViewerState
from glue_jupyter.registries import viewer_registry

from .layer_artist import IpyvolumeVolumeLayerArtist
from .layer_style_widget import Volume3DLayerStateWidget
Expand All @@ -12,6 +13,7 @@
__all__ = ['IpyvolumeVolumeView']


@viewer_registry("volume")
class IpyvolumeVolumeView(IpyvolumeBaseView):

_state_cls = VolumeViewerState
Expand Down

0 comments on commit f8e24b8

Please sign in to comment.