def execute_request(self, stream, ident, parent):
            # This function is mostly a copy-pasted version from ipykernel,
            # but it is split into several functions in order to allow
            # overriding them in subclasses.

            # ============ BEGIN COPY-PASTE =============
            try:
                content = parent[u'content']
                code = py3compat.cast_unicode_py2(content[u'code'])
                silent = content[u'silent']
                store_history = content.get(u'store_history', not silent)
                user_expressions = content.get('user_expressions', {})
                allow_stdin = content.get('allow_stdin', False)
            except:
                self.log.error("Got bad msg: ")
                self.log.error("%s", parent)
                return

            metadata = self.init_metadata(parent)

            # Re-broadcast our input for the benefit of listening clients, and
            # start computing output
            if not silent:
                self.execution_count += 1
                self._publish_execute_input(code, parent, self.execution_count)

            reply_content = self.do_execute(code, silent, store_history,
                                            user_expressions, allow_stdin)

            # ============ END COPY-PASTE =============
            self.send_execute_reply(stream, ident, parent, metadata, reply_content)
Export loan entries
dataset/ETHPy150Open scrapinghub/splash/splash/kernel/kernelbase.py/Kernel.execute_request--crossover with--dataset/ETHPy150Open radekstepan/FlaskBudget/presenters/loans.py/export