Browse Source

startup: setup pretty printing for sympy expressions

Fabian Peter Hammerle 1 week ago
parent
commit
88f8af8ef2
1 changed files with 4 additions and 0 deletions
  1. 4 0
      profile_default/startup/init.py

+ 4 - 0
profile_default/startup/init.py

@@ -4,8 +4,12 @@ import typing
 
 import numpy
 import scipy.io.wavfile
+import sympy
 from matplotlib import pyplot  # pylint: disable=unused-import; frequently used in shell
 
+# https://docs.sympy.org/latest/modules/interactive.html#module-sympy.interactive.printing
+sympy.init_printing(pretty_print=True)
+
 
 def numpy_array_from_file(
     path: typing.Union[str, pathlib.Path], dtype