def interact(locals=None, plain=False):
    locals = locals or inspect.currentframe().f_back.f_locals
    try:
        if plain:
            raise ImportError
        from IPython import embed
        embed(user_ns=locals, banner1='')
    except __HOLE__:
        code.interact(local=locals)
dataset/ETHPy150Open fusic-com/flask-todo/utils/pyutils.py/interact