code: def cancelPendingResultsFor( self, ps ):
          
          k = self._parametersAsIndex(ps)
  
          if k in self._results.keys():
              # remove from results
              rs = self._results[k]
              js = [ j for j in rs if not isinstance(j, dict) ]
              self._results[k] = [ rc for rc in rs if isinstance(rc, dict) ]
  
              # ...and from pending jobs list
              for j in js:
                  del self._pending[j]
docs: Cancel all pending results for the given parameters. Note that
          this only affects the notebook's record, not any job running in a lab.
  
          :param ps: the parameters