def cancelPendingResult( self, jobid ):
if jobid in self._pending.keys():<EOL><INDENT>k = self._pending[jobid]<EOL>del self._pending[jobid]<EOL>if k in self._results.keys():<EOL><INDENT>rs = self._results[k]<EOL>j = rs.index(jobid)<EOL>del rs[j]<EOL><DEDENT>else:<EOL><INDENT>raise RuntimeError('<STR_LIT>'.format(j = jobid,<EOL>ps = k))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise KeyError('<STR_LIT>'.format(j = jobid))<EOL><DEDENT>
Cancel a particular pending result. Note that this only affects the
        notebook's record, not any job running in a lab.

        :param jobid: job id for pending result