def pre_run_cell(self, cellno, code):
<EOL>self.cellid = cellno<EOL>import ast<EOL>if findloop(ast.parse(code)):<EOL><INDENT>from acorn.logging.decoration import set_streamlining<EOL>set_streamlining(True)<EOL>from time import time<EOL>self.pre = {<EOL>"<STR_LIT:m>": "<STR_LIT>",<EOL>"<STR_LIT:a>": None,<EOL>"<STR_LIT:s>": time(),<EOL>"<STR_LIT:r>": None,<EOL>"<STR_LIT:c>": code,<EOL>}<EOL><DEDENT>
Executes before the user-entered code in `ipython` is run. This
        intercepts loops and other problematic code that would produce lots of
        database entries and streamlines it to produce only a single entry.

        Args:
            cellno (int): the cell number that is about to be executed.
            code (str): python source code that is about to be executed.