def rerun_pasted(self, name='<STR_LIT>'):
b = self.shell.user_ns.get(name)<EOL>if b is None:<EOL><INDENT>raise UsageError('<STR_LIT>')<EOL><DEDENT>if not isinstance(b, str):<EOL><INDENT>raise UsageError(<EOL>"<STR_LIT>")<EOL><DEDENT>print("<STR_LIT>"% (b.split('<STR_LIT:\n>',<NUM_LIT:1>)[<NUM_LIT:0>], len(b)))<EOL>self.shell.run_cell(b)<EOL>
Rerun a previously pasted command.