def store_or_execute(self, block, name):
b = self.cleanup_input(block)<EOL>if name:<EOL><INDENT>self.shell.user_ns[name] = SList(b.splitlines())<EOL>print("<STR_LIT>" % name)<EOL><DEDENT>else:<EOL><INDENT>self.shell.user_ns['<STR_LIT>'] = b<EOL>self.shell.run_cell(b)<EOL><DEDENT>
Execute a block, or store it in a variable, per the user's request.