A small side-project, ‘melancholia’ module, is available to download . Python module ‘melancholia’ is able to print NumPy arrays into a variable or a file in a nice, human-readable way.
The module is available on GitHub , module’s documentation is here .
Please take a look on two examples of NumPy arrays printed with ‘melancholia’: 2-dimensional arrays and 1-dimensional arrays . User decides about numbers format, delimiters, line wrapping etc.
Here are some examples of using ‘melancholia’ in Python programs.