environment/lib/python2.7/site-packages/IPython/core/inputsplitter.py
def transform_assign_magic(line):
    """Handle the `a = %who` syntax."""
    m = _assign_magic_re.match(line)
    if m is not None:
        cmd = m.group('cmd')
        lhs = m.group('lhs')
        new_line = '%s = get_ipython().magic(%r)' % (lhs, cmd)
        return new_line
    return line
def transform_assign_magic(line):
    m = _assign_magic_re.match(line)
    if m is not None:
        cmd = m.group('cmd')
        lhs = m.group('lhs')
        new_line = '%s = get_ipython().magic(%r)' % (lhs, cmd)
        return new_line
    return line
def transform_assign_magic ( line ) : m = _assign_magic_re . match ( line ) if m is not None : cmd = m . group ( 'cmd' ) lhs = m . group ( 'lhs' ) new_line = '%s = get_ipython().magic(%r)' % ( lhs , cmd ) return new_line return line
Handle the `a = %who` syntax.
Handle the a = %who syntax .