Skip to content

Commit

Permalink
Add all viewers to the registry
Browse files Browse the repository at this point in the history
  • Loading branch information
jfoster17 committed Nov 29, 2023
1 parent f8e24b8 commit f943273
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 0 deletions.
4 changes: 4 additions & 0 deletions glue_jupyter/bqplot/histogram/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
from .layer_artist import * # noqa
from .viewer import * # noqa


def setup():
from viewer import BqplotHistogramView # noqa
4 changes: 4 additions & 0 deletions glue_jupyter/bqplot/image/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
from .layer_artist import * # noqa
from .viewer import * # noqa


def setup():
from viewer import BqplotImageView # noqa
4 changes: 4 additions & 0 deletions glue_jupyter/bqplot/profile/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
from .layer_artist import * # noqa
from .viewer import * # noqa


def setup():
from viewer import BqplotProfileView # noqa
4 changes: 4 additions & 0 deletions glue_jupyter/bqplot/scatter/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
from .layer_artist import * # noqa
from .viewer import * # noqa


def setup():
from viewer import BqplotScatterView # noqa
4 changes: 4 additions & 0 deletions glue_jupyter/ipyvolume/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
from .volume.viewer import IpyvolumeVolumeView # noqa
from .scatter.viewer import IpyvolumeScatterView # noqa


def setup():
from viewer import IpyvolumeVolumeView # noqa
4 changes: 4 additions & 0 deletions glue_jupyter/ipyvolume/scatter/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
from .layer_artist import * # noqa
from .layer_style_widget import * # noqa
from .viewer import * # noqa


def setup():
from viewer import IpyvolumeScatterView # noqa
3 changes: 3 additions & 0 deletions glue_jupyter/ipyvolume/scatter/viewer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from glue_jupyter.common.state3d import Scatter3DViewerState
from glue_jupyter.registries import viewer_registry

from .layer_artist import IpyvolumeScatterLayerArtist
from .layer_style_widget import Scatter3DLayerStateWidget
from ..common.viewer_options_widget import Viewer3DStateWidget
Expand All @@ -7,6 +9,7 @@
__all__ = ['IpyvolumeScatterView']


@viewer_registry("scatter3d")
class IpyvolumeScatterView(IpyvolumeBaseView):

allow_duplicate_data = False
Expand Down
4 changes: 4 additions & 0 deletions glue_jupyter/table/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
from .viewer import TableViewer # noqa


def setup():
from viewer import TableViewer # noqa
10 changes: 10 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ install_requires =
bqplot-gl
scikit-image

[options.entry_points]
glue.plugins =
histogram = glue_jupyter.bqplot.histogram:setup
image = glue_jupyter.bqplot.image:setup
profile = glue_jupyter.bqplot.profile:setup
scatter = glue_jupyter.bqplot.scatter:setup
table = glue_jupyter.table:setup
scatter3d = glue_jupyter.ipyvolume.scatter:setup
volume = glue_jupyter.ipyvolume.volume:setup

[options.extras_require]
test =
pytest
Expand Down

0 comments on commit f943273

Please sign in to comment.