r/Python • • Aug 05 '19

Python's response to MATLAB

Post image
4.3k Upvotes

372 comments sorted by

View all comments

60

u/Antouziast Aug 05 '19

Young engineer here, PhD student. I have to say Matlab is an awesome tool when it comes to manipulating and exploring data really fast but now I'd love to expand my programming skills and turn towards Python. But on my day to day work it's really hard to branch out since a lot of my tools are written in Matlab.

Also, one of the biggest issues I've encountered with trying to learn Python is how to set up your environment and workflow before even writing a single line of code. I've looked into conda and all but it takes some energy to find the good ressources that will help when you've never used anything else than Matlab which just works out of the box. (Any awesome tutorial to give good practices as to the management of a project in and around the code? i.e. "I'm going to start a project xyz, what's a good practice to manage my code and dependencies in a not cluttery way so that I can start working on the code and not fighting bugs?")

But in the long run I hope to rely more and more on Python than on Matlab!

TL;DR : I'm a Matlab user that wants to avoid the mistakes you do at the beginning when learning Python

27

u/absolutelynoartist Aug 05 '19

Try Spyder via anaconda

11

u/[deleted] Aug 05 '19

Definitely. I learned MATLAB first and Spyder made it really easy to pick up Python. Anaconda also has pretty much every general package you need to get started. I still don't see why Jupyter notebooks (or MATLAB's live scripts) get so much love, the Spyder/MATLAB interface style seems so much more practical.

3

u/Antouziast Aug 05 '19

Seems like they have different purposes. Jupyter seems more adapted to share your work to others due to the interactivity and Spyder and other IDEs are more to do some heavy duty stuff.

What I like about Matlab is that you can easily generate and update figures on the go while your code is running (super useful in academia and research) by using figure and drawnow functions. Although I haven't spent too much time exploring the alternative in Python it seems more cumbersome to do the same thing. (Please someone prove me wrong on this!)

2

u/[deleted] Aug 05 '19

That's the only use I've found for it - education or explaining code. However I assume based in its popularity people use it for more than that.

2

u/xcvbsdfgwert Aug 06 '19

That purpose is highly relevant though, probably more than you think. Maybe this article can provide some context:

https://www.theatlantic.com/science/archive/2018/04/the-scientific-paper-is-obsolete/556676/

→ More replies (1)
→ More replies (2)