Show More
@@ -72,7 +72,7 b' def load_ipython_extension(ip):' | |||||
72 | if not _loaded: |
|
72 | if not _loaded: | |
73 | plaintext_formatter = ip.display_formatter.formatters['text/plain'] |
|
73 | plaintext_formatter = ip.display_formatter.formatters['text/plain'] | |
74 |
|
74 | |||
75 |
for cls in (object, |
|
75 | for cls in (object, set, frozenset, str): | |
76 | plaintext_formatter.for_type(cls, print_basic_unicode) |
|
76 | plaintext_formatter.for_type(cls, print_basic_unicode) | |
77 |
|
77 | |||
78 | plaintext_formatter.for_type_by_name( |
|
78 | plaintext_formatter.for_type_by_name( | |
@@ -87,6 +87,8 b' def load_ipython_extension(ip):' | |||||
87 | png_formatter.for_type_by_name( |
|
87 | png_formatter.for_type_by_name( | |
88 | 'sympy.core.basic', 'Basic', print_png |
|
88 | 'sympy.core.basic', 'Basic', print_png | |
89 | ) |
|
89 | ) | |
|
90 | for cls in (list, tuple, dict, int, long, float): | |||
|
91 | png_formatter.for_type(cls, print_png) | |||
90 |
|
92 | |||
91 | latex_formatter = ip.display_formatter.formatters['text/latex'] |
|
93 | latex_formatter = ip.display_formatter.formatters['text/latex'] | |
92 | latex_formatter.for_type_by_name( |
|
94 | latex_formatter.for_type_by_name( | |
@@ -95,5 +97,7 b' def load_ipython_extension(ip):' | |||||
95 | latex_formatter.for_type_by_name( |
|
97 | latex_formatter.for_type_by_name( | |
96 | 'sympy.matrices.matrices', 'Matrix', print_latex |
|
98 | 'sympy.matrices.matrices', 'Matrix', print_latex | |
97 | ) |
|
99 | ) | |
98 | _loaded = True |
|
100 | for cls in (list, tuple, dict, int, long, float): | |
|
101 | latex_formatter.for_type(cls, print_latex) | |||
99 |
|
102 | |||
|
103 | _loaded = True |
General Comments 0
You need to be logged in to leave comments.
Login now