diff --git a/jdaviz/configs/default/plugins/viewers.py b/jdaviz/configs/default/plugins/viewers.py index 0c5c3ac6d3..af11f749ba 100644 --- a/jdaviz/configs/default/plugins/viewers.py +++ b/jdaviz/configs/default/plugins/viewers.py @@ -34,6 +34,7 @@ def __init__(self, *args, **kwargs): @property def user_api(self): + # default exposed user APIs. Can override this method in any particular viewer. if isinstance(self, BqplotImageView): if hasattr(self, 'zoom_level'): expose = ['zoom', 'zoom_level'] @@ -41,6 +42,8 @@ def user_api(self): # cubeviz image viewers don't inherit from AstrowidgetsImageViewerMixin yet, # but also shouldn't expose set_lims because of equal aspect ratio concerns expose = [] + elif isinstance(self, TableViewer): + expose = [] else: expose = ['set_lims'] return ViewerUserApi(self, expose=expose)