(self, target, **kwargs)
Start an interactive interpreter session.
Start an interactive interpreter session.
Start an interactive interpreter session .
def launch(self, target, **kwargs):
        """Start an interactive interpreter session."""
        thread = threading.Thread(target=self._thread_runner, args=(target,), kwargs=kwargs)
        try:
            # launch the BASIC thread
            thread.start()
            # run the interface
            self.run()
        except Exception as e:
            logging.error('Fatal error in interface')
            logging.error(''.join(traceback.format_exception(*sys.exc_info())))
        finally:
            self.quit_input()
            thread.join()
def launch ( self , target , * * kwargs ) : thread = threading . Thread ( target = self . _thread_runner , args = ( target , ) , kwargs = kwargs ) try : # launch the BASIC thread thread . start ( ) # run the interface self . run ( ) except Exception as e : logging . error ( 'Fatal error in interface' ) logging . error ( '' . join ( traceback . format_exception ( * sys . exc_info ( ) ) ) ) finally : self . quit_input ( ) thread . join ( )