code: def _comm_changed(self, change):
          
          if change['new'] is None:
              return
          self._model_id = self.model_id
  
          self.comm.on_msg(self._handle_msg)
          Widget.widgets[self.model_id] = self
docs: Called when the comm is changed.