environment/lib/python2.7/site-packages/IPython/core/shellapp.py
def _run_exec_lines(self):
        """Run lines of code in IPythonApp.exec_lines in the user's namespace."""
        if not self.exec_lines:
            return
        try:
            self.log.debug("Running code from IPythonApp.exec_lines...")
            for line in self.exec_lines:
                try:
                    self.log.info("Running code in user namespace: %s" %
                                  line)
                    self.shell.run_cell(line, store_history=False)
                except:
                    self.log.warn("Error in executing line in user "
                                  "namespace: %s" % line)
                    self.shell.showtraceback()
        except:
            self.log.warn("Unknown error in handling IPythonApp.exec_lines:")
            self.shell.showtraceback()
def _run_exec_lines(self):
        """Run lines of code in IPythonApp.exec_lines in the user's namespace."""
        if not self.exec_lines:
            return
        try:
            self.log.debug("Running code from IPythonApp.exec_lines...")
            for line in self.exec_lines:
                try:
                    self.log.info("Running code in user namespace: %s" %
                                  line)
                    self.shell.run_cell(line, store_history=False)
                except:
                    self.log.warn("Error in executing line in user "
                                  "namespace: %s" % line)
                    self.shell.showtraceback()
        except:
            self.log.warn("Unknown error in handling IPythonApp.exec_lines:")
            self.shell.showtraceback()
def _run_exec_lines ( self ) : if not self . exec_lines : return try : self . log . debug ( "Running code from IPythonApp.exec_lines..." ) for line in self . exec_lines : try : self . log . info ( "Running code in user namespace: %s" % line ) self . shell . run_cell ( line , store_history = False ) except : self . log . warn ( "Error in executing line in user " "namespace: %s" % line ) self . shell . showtraceback ( ) except : self . log . warn ( "Unknown error in handling IPythonApp.exec_lines:" ) self . shell . showtraceback ( )
Run lines of code in IPythonApp.exec_lines in the user's namespace.
Run lines of code in IPythonApp . exec_lines in the user s namespace .