()
Returns the innermost active tqdm progress loop on the stack.
Returns the innermost active tqdm progress loop on the stack.
Returns the innermost active tqdm progress loop on the stack .
def innermost_tqdm():
    '''
    Returns the innermost active tqdm progress loop on the stack.
    '''
    if hasattr(tqdm, '_instances') and len(tqdm._instances) > 0:
        return max(tqdm._instances, key=lambda x: x.pos)
    else:
        return None
def innermost_tqdm ( ) : if hasattr ( tqdm , '_instances' ) and len ( tqdm . _instances ) > 0 : return max ( tqdm . _instances , key = lambda x : x . pos ) else : return None