def cancelPendingResultsFor( self, ps ):
k = self._parametersAsIndex(ps)<EOL>if k in self._results.keys():<EOL><INDENT>rs = self._results[k]<EOL>js = [ j for j in rs if not isinstance(j, dict) ]<EOL>self._results[k] = [ rc for rc in rs if isinstance(rc, dict) ]<EOL>for j in js:<EOL><INDENT>del self._pending[j]<EOL><DEDENT><DEDENT>
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