environment/lib/python2.7/site-packages/IPython/utils/text.py
def dgrep(pat,*opts):
    """Return grep() on dir()+dir(__builtins__).

    A very common use of grep() when working interactively."""

    return grep(pat,dir(__main__)+dir(__main__.__builtins__),*opts)
def dgrep(pat,*opts):
    """Return grep() on dir()+dir(__builtins__).

    A very common use of grep() when working interactively."""

    return grep(pat,dir(__main__)+dir(__main__.__builtins__),*opts)
def dgrep ( pat , * opts ) : return grep ( pat , dir ( __main__ ) + dir ( __main__ . __builtins__ ) , * opts )
Return grep() on dir()+dir(__builtins__).

    A very common use of grep() when working interactively.
Return grep () on dir () + dir ( __builtins__ ) .