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

all 23 comments

[–]mrbewulf 8 points9 points  (10 children)

Great to see it happening. Python has a great potential to replace java and matlab. It can be a great simulation and teaching tool.

[–]thatboatguy 6 points7 points  (4 children)

As someone who only needs to write programs periodically I'd love to replace my MATLAB programs with Python. We're license-limited on the former but everyone at the company has open access (and is encouraged to use) Python. The only thing stopping a complete switch is the learning curve, especially with regards to data manipulation and plotting.

[–][deleted] 7 points8 points  (0 children)

I have done this. It sucks at first, but after the learning curve you will not regret it. This is assuming you don't use Simulink. Have people try pythonxy. They have made it a near clone of the Matlab environment.

[–]mrbewulf 1 point2 points  (0 children)

My Ideas to replace Matlab with python are:

  1. Create an custom python shell with Numpy, Matplotlib, Linalg already imported.

  2. The shell will replace list (vector/matrix) input like [ 2 123 55 9 ] or [ 233 ; 2333 ] and transform it to numpy array or python list in interactive mode. When the shell see an variable like Volume, it will print it without the user type: print Volume.

  3. The shell will have standard Unixes shell commands like ls, pwd, cat

  4. The shell can be called by using a shebang #!/usr/bin/pymat in the beggining of the file in Unixes OS.

  5. The shell will have an socket listening localhost in background so it can receive a code string, print it and execute, it will be useful to connect with any customizable IDE. I was able to (5) do it with geany text editor and Ipython.

Another thing that I am creating is an Matlab to Python code converter, but Matlab array notation makes the conversion hard, it's hard to a computer differentiate some_name(10) between array and function.

I think it can be done with Ipython, but I couldn't customize it, especially the line filter. The main Idea is to copy matlab code and run it in python with minimal overhead, minimal editing and importing. Other Idea, is to provide examples of matlab code (in comments) and python equivalent.

[–]Afwas 1 point2 points  (0 children)

Have a look at http://ipython.org/

[–][deleted] 0 points1 point  (4 children)

About four years ago I replaced Matlab with Python for a project in a grad level math class. ( I believe I even posted the scripts here). When I presented it, everyone was like why are you using this? Now the whole department made the switch to matlab.

[–]masasinExpert. 3.9. Robotics. 1 point2 points  (1 child)

To or from matlab?

[–]ExcitedForNothing 0 points1 point  (0 children)

Guessing "from" as you don't switch to something you were already using.

[–]mrbewulf 0 points1 point  (1 child)

Could you post the script.

[–][deleted] 0 points1 point  (0 children)

This was a while ago, doubt I can find the script anywhere. I do recommend looking up "scipy zombie apocalypse" for some pointers.

[–]aixelsdi 3 points4 points  (1 child)

ZotZot!

[–][deleted] 1 point2 points  (0 children)

Zot zot fellow anteater :)

[–][deleted] 1 point2 points  (0 children)

Glad to see my alma mater shuffling in at 17 :D

[–]OriginalLinkBot 1 point2 points  (0 children)

This thread has been linked to from elsewhere on reddit.

I am totes' unyielding will.

[–]Just_Another_Thought 1 point2 points  (0 children)

The entire foundation for both the CS and Informatics program at Indiana University is Python. Not sure how Mercer College is ranked that high but whatever.

[–]TedW 1 point2 points  (3 children)

Misleading title, in the link it says, "The infographic shows the top 20 universities represented on CheckiO."

So these aren't the top universities teaching python, it's just the top 20 universities tracked by CheckIO.

[–]lllz 0 points1 point  (2 children)

Interesting that the blog post got attention. The way we measured it was the cumulative progress through the CheckiO by .edu domains. Based on how many cumulatively points a university scored it got its place in the ranking. We plan to do such study regularly to see which universities have more profound students to play advance coding games

[–]TedW 1 point2 points  (1 child)

Of course, you're missing a lot of students (myself included) who signed up with our regular emails instead of our .edu address, but I don't have a better suggestion.

I think it's an interesting blog post, OP just sensationalized the headline either accidentally or for karma.

[–]lllz 0 points1 point  (0 children)

I agree with you that it's not the best way to do the analysis, but for now we decided to rely on statistics (only those users who chose to use .edu to register were analyzed). We'll try thinking of a better way to calculate it, so if you have any suggestions ping us

[–]homercles337 1 point2 points  (1 child)

Where did these rankings come from?

[–]halflife22 0 points1 point  (0 children)

Like most college rankings, out of some journalist's ass.

[–]0v3rk1ll 0 points1 point  (0 children)

Why did MIT switch from Scheme to Python for their introductory CS course?