code: def paste_to_selection(self, selection, data, freq=None):
          
  
          (bb_top, bb_left), (bb_bottom, bb_right) = \
              selection.get_grid_bbox(self.grid.code_array.shape)
          adjusted_data = self.selection_paste_data_gen(selection, data)
          self.paste_to_current_cell((bb_top, bb_left), adjusted_data, freq=freq)
docs: Pastes data into grid selection