diff --git a/nglview/widget.py b/nglview/widget.py index a9548eba..971299ed 100644 --- a/nglview/widget.py +++ b/nglview/widget.py @@ -692,7 +692,7 @@ def clear_representations(self, component=0): You need to keep track how many components you added. ''' self._remote_call( - "clearRepresentations", + "removeAllRepresentations", target='compList', kwargs={'component_index': component})