environment/lib/python2.7/site-packages/IPython/frontend/terminal/console/interactiveshell.py
def wait_for_kernel(self, timeout=None):
        """method to wait for a kernel to be ready"""
        tic = time.time()
        self.km.hb_channel.unpause()
        while True:
            self.run_cell('1', False)
            if self.km.hb_channel.is_beating():
                # heart failure was not the reason this returned
                break
            else:
                # heart failed
                if timeout is not None and (time.time() - tic) > timeout:
                    return False
        return True
def wait_for_kernel(self, timeout=None):
        """method to wait for a kernel to be ready"""
        tic = time.time()
        self.km.hb_channel.unpause()
        while True:
            self.run_cell('1', False)
            if self.km.hb_channel.is_beating():
                # heart failure was not the reason this returned
                break
            else:
                # heart failed
                if timeout is not None and (time.time() - tic) > timeout:
                    return False
        return True
def wait_for_kernel ( self , timeout = None ) : tic = time . time ( ) self . km . hb_channel . unpause ( ) while True : self . run_cell ( '1' , False ) if self . km . hb_channel . is_beating ( ) : # heart failure was not the reason this returned break else : # heart failed if timeout is not None and ( time . time ( ) - tic ) > timeout : return False return True
method to wait for a kernel to be ready
method to wait for a kernel to be ready