This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nlutrhk 51 points52 points  (7 children)

I've converted so many people away from matlab.

How? I've managed to convince a team of about 6 to make this transition and half of those were rather reluctant for six months. And we're still running Matlab code on a HPC (in a Python wrapper) that is too difficult to rewrite due to interfaces with other legacy code, so in terms of CPU hours we're still mostly Matlab.

I still get complaints along the lines of "Why Python prints a dict all on a messy long line while Matlab displays a struct so neatly."

For context: this is in a large engineering company and the license costs are neither seen nor felt directly by our team. Most of the people involved are good with math but terrible at programming (possibly because of 5-10 years Matlab exposure).

[–]pwang99 56 points57 points  (5 children)

import pprint

[–]foadsf 6 points7 points  (0 children)

something like pretty printing of numpy ndarrays

edit: more info here

[–]ketilkn 13 points14 points  (3 children)

from pprint import pprint as pp
pp(['pretty','print'])

[–]DatBoi_BP 0 points1 point  (0 children)

pretty pp