import sympy
sympy.__version__
'0.7.4-git'
d = {'Something Funny': 0.0, '\pi * \cos{\alpha': 1.0}
alpha, beta, gamma = sympy.symbols('alpha, beta, gamma')
sympy.init_printing()
It used to render string types with LaTeX, but now that is removed so this dictionary now comes out as plain text.
d
{'Something Funny': 0.0, '\\pi * \\cos{\x07lpha': 1.0}
{alpha: 1, beta: gamma, gamma:0.0}
sympy.init_printing(print_builtin=False)
d
{'Something Funny': 0.0, '\\pi * \\cos{\x07lpha': 1.0}
Dictionaries only render in LaTeX if all of their elements are SymPy types (including floats and integers). With the print_builtin flag False, the ints and floats will not render, thus the whole dict will not render.
{alpha: 1, beta: gamma, gamma:0.0}
{beta: gamma, alpha: 1, gamma: 0.0}