As done in the link you posted and mentioned by @tcaswell you need to "activate" the latex printing using
from sympy.interactive import printing
printing.init_printing(use_latex=True)
the use_latex=True statement is required with sympy 0.7.2 but not with 0.7.3.