environment/lib/python2.7/site-packages/IPython/extensions/sympyprinting.py
def can_print_latex(o):
    """
    Return True if type o can be printed with LaTeX.

    If o is a container type, this is True if and only if every element of o
    can be printed with LaTeX.
    """
    import sympy
    if isinstance(o, (list, tuple, set, frozenset)):
        return all(can_print_latex(i) for i in o)
    elif isinstance(o, dict):
        return all((isinstance(i, basestring) or can_print_latex(i)) and can_print_latex(o[i]) for i in o)
    elif isinstance(o,(sympy.Basic, sympy.matrices.Matrix, int, long, float)):
        return True
    return False
def can_print_latex(o):
    import sympy
    if isinstance(o, (list, tuple, set, frozenset)):
        return all(can_print_latex(i) for i in o)
    elif isinstance(o, dict):
        return all((isinstance(i, basestring) or can_print_latex(i)) and can_print_latex(o[i]) for i in o)
    elif isinstance(o,(sympy.Basic, sympy.matrices.Matrix, int, long, float)):
        return True
    return False
def can_print_latex ( o ) : import sympy if isinstance ( o , ( list , tuple , set , frozenset ) ) : return all ( can_print_latex ( i ) for i in o ) elif isinstance ( o , dict ) : return all ( ( isinstance ( i , basestring ) or can_print_latex ( i ) ) and can_print_latex ( o [ i ] ) for i in o ) elif isinstance ( o , ( sympy . Basic , sympy . matrices . Matrix , int , long , float ) ) : return True return False
Return True if type o can be printed with LaTeX.

    If o is a container type, this is True if and only if every element of o
    can be printed with LaTeX.
Return True if type o can be printed with LaTeX .