environment/lib/python2.7/site-packages/IPython/frontend/terminal/ipapp.py
def make_report(self,traceback):
        """Return a string containing a crash report."""

        sec_sep = self.section_sep
        # Start with parent report
        report = [super(IPAppCrashHandler, self).make_report(traceback)]
        # Add interactive-specific info we may have
        rpt_add = report.append
        try:
            rpt_add(sec_sep+"History of session input:")
            for line in self.app.shell.user_ns['_ih']:
                rpt_add(line)
            rpt_add('\n*** Last line of input (may not be in above history):\n')
            rpt_add(self.app.shell._last_input_line+'\n')
        except:
            pass

        return ''.join(report)
def make_report(self,traceback):
        """Return a string containing a crash report."""

        sec_sep = self.section_sep
        # Start with parent report
        report = [super(IPAppCrashHandler, self).make_report(traceback)]
        # Add interactive-specific info we may have
        rpt_add = report.append
        try:
            rpt_add(sec_sep+"History of session input:")
            for line in self.app.shell.user_ns['_ih']:
                rpt_add(line)
            rpt_add('\n*** Last line of input (may not be in above history):\n')
            rpt_add(self.app.shell._last_input_line+'\n')
        except:
            pass

        return ''.join(report)
def make_report ( self , traceback ) : sec_sep = self . section_sep # Start with parent report report = [ super ( IPAppCrashHandler , self ) . make_report ( traceback ) ] # Add interactive-specific info we may have rpt_add = report . append try : rpt_add ( sec_sep + "History of session input:" ) for line in self . app . shell . user_ns [ '_ih' ] : rpt_add ( line ) rpt_add ( '\n*** Last line of input (may not be in above history):\n' ) rpt_add ( self . app . shell . _last_input_line + '\n' ) except : pass return '' . join ( report )
Return a string containing a crash report.
Return a string containing a crash report .