docs: def hide(self, selections):
          '''Hide objects in this representation. BallAndStickRepresentation
          support selections of atoms and bonds.
  
          To hide the first atom and the first bond you can use the
          following code::
  
              from chemlab.mviewer.state import Selection
              representation.hide({'atoms': Selection([0], system.n_atoms),
                                     'bonds': Selection([0], system.n_bonds)})
  
          Returns the current Selection of hidden atoms and bonds.
  
          '''
          if 'atoms' in selections:
              self.hidden_state['atoms'] = selections['atoms']
              self.on_atom_hidden_changed()
  
          if 'bonds' in selections:
              self.hidden_state['bonds'] = selections['bonds']
              self.on_bond_hidden_changed()
  
          if 'box' in selections:
              self.hidden_state['box'] = box_s = selections['box']
              if box_s.mask[0]:
                  if self.viewer.has_renderer(self.box_renderer):
                      self.viewer.remove_renderer(self.box_renderer)
              else:
                  if not self.viewer.has_renderer(self.box_renderer):
                      self.viewer.add_renderer(self.box_renderer)
  
          return self.hidden_state