@interactive
def _require(*names):
    from IPython.parallel.error import UnmetDependency
    user_ns = globals()
    for name in names:
        if name in user_ns:
            continue
        try:
            exec('import %s'%name, user_ns)
        except ImportError:
            raise UnmetDependency(name)
    return True
Helper for @require decorator.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/parallel/controller/dependency.py/_require