Skip to content

Commit

Permalink
Add export tools to Jupyter VisPy viewers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 committed Aug 1, 2024
1 parent 981f732 commit f518d9c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
11 changes: 10 additions & 1 deletion glue_plotly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,21 @@ def setup_qt():


def setup_jupyter():
from .html_exporters import bqplot # noqa
from .html_exporters import jupyter # noqa
from glue_jupyter.bqplot.histogram import BqplotHistogramView
from glue_jupyter.bqplot.image import BqplotImageView
from glue_jupyter.bqplot.profile import BqplotProfileView
from glue_jupyter.bqplot.scatter import BqplotScatterView

try:
from glue_vispy_viewers.scatter.jupyter import JupyterVispyScatterViewer
from glue_vispy_viewers.volume.jupyter import JupyterVispyVolumeViewer
except ImportError:
pass
else:
JupyterVispyScatterViewer.tools += ['save:jupyter_plotly3dscatter']
JupyterVispyVolumeViewer.tools += ['save:jupyter_plotly3dvolume']

BqplotHistogramView.tools += ['save:bqplot_plotlyhist']
BqplotImageView.tools += ['save:bqplot_plotlyimage2d']
BqplotProfileView.tools += ['save:bqplot_plotlyprofile']
Expand Down
2 changes: 2 additions & 0 deletions glue_plotly/html_exporters/jupyter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
from . import image # noqa
from . import profile # noqa
from . import scatter2d # noqa
from . import vispy_scatter # noqa
from . import vispy_volume # noqa

0 comments on commit f518d9c

Please sign in to comment.