'Extend base class method to reset output properly'

def showtraceback(self):

    self.tkconsole.resetoutput()
    self.checklinecache()
    InteractiveInterpreter.showtraceback(self)
    if self.tkconsole.getvar('<<toggle-jit-stack-viewer>>'):
        self.tkconsole.open_stack_viewer()
