[Numpy-discussion] numpy pprint?

Foad Sojoodi Farimani f.s.farimani at gmail.com
Tue Nov 6 16:50:54 EST 2018

Hello Numpyers,

I just added the pretty printing for 3D arrays too:
I would highly appreciate if you could check the implementation and let me
know how do you think about it.


On Mon, Nov 5, 2018 at 10:44 PM Foad Sojoodi Farimani <
f.s.farimani at gmail.com> wrote:

> Hello everyone,
> Following this question <https://stackoverflow.com/q/53126305/4999991>,
> I'm convinced that numpy ndarrays are not MATLAB/mathematical
> multidimentional matrices and I should stop expecting them to be. However I
> still think it would have a lot of benefit to have a function like sympy's
> pprint to pretty print. something like pandas .head and .tail method plus
> .left .right .UpLeft .UpRight .DownLeft .DownRight methods. when nothing
> mentioned it would show 4 corners and put dots in the middle if the array
> is to big for the terminal.
> Best,
> Foad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20181106/5f09581b/attachment.html>

More information about the NumPy-Discussion mailing list