Skip to content

Commit 8ae0545

Browse files
authored
Merge pull request #452 from astrofrog/allow-toolbar-subclasses
Allow viewers to use BasicJupyterToolbar subclasses
2 parents 23111b9 + 11fedb5 commit 8ae0545

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

glue_jupyter/view.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class IPyWidgetView(Viewer):
2626

2727
_layer_artist_container_cls = IPyWidgetLayerArtistContainer
2828
_default_mouse_mode_cls = None
29+
_toolbar_cls = BasicJupyterToolbar
2930

3031
inherit_tools = True
3132
tools = []
@@ -149,7 +150,7 @@ def initialize_toolbar(self):
149150

150151
from glue.config import viewer_tool
151152

152-
self.toolbar = BasicJupyterToolbar(self)
153+
self.toolbar = self._toolbar_cls(self)
153154

154155
# Need to include tools and subtools declared by parent classes unless
155156
# specified otherwise

0 commit comments

Comments
 (0)