Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 25, 2013, 08:50 PM   #1
saberahul
macrumors 68040
 
Join Date: Nov 2008
Location: On my iPad
Matlab like Python editor

I'll admit I have no idea what I'm talking about when it comes to Python but it seems to be similar to Matlab - which I know well. I'm mainly looking for a single app where I can type in some code (in Python, and free) and press some button or keyboard command to run it.

In other words, any apps (far better looking) than Terminal where I can type 4 + 4 [enter] and get 8?

Thanks!
__________________
iPhone iPad MacBook Pro
saberahul is offline   0 Reply With Quote
Old Feb 25, 2013, 08:52 PM   #2
mobilehaathi
macrumors 601
 
mobilehaathi's Avatar
 
Join Date: Aug 2008
Location: Bay Area, CA
Open a terminal and type
Code:
python
__________________
The true way is along a rope that is not spanned high in the air, but only just above the ground. It seems intended more to cause stumbling than to be walked along.
mobilehaathi is offline   0 Reply With Quote
Old Feb 25, 2013, 08:53 PM   #3
saberahul
Thread Starter
macrumors 68040
 
Join Date: Nov 2008
Location: On my iPad
Quote:
Originally Posted by mobilehaathi View Post
Open a terminal and type
Code:
python
Thanks. I'm aware I can do that but am looking for a 3rd party app with lots of pretty buttons and a pretty UI. Anything like this exist?
__________________
iPhone iPad MacBook Pro
saberahul is offline   0 Reply With Quote
Old Feb 25, 2013, 08:54 PM   #4
mobilehaathi
macrumors 601
 
mobilehaathi's Avatar
 
Join Date: Aug 2008
Location: Bay Area, CA
Quote:
Originally Posted by saberahul View Post
Thanks. I'm aware I can do that but am looking for a 3rd party app with lots of pretty buttons and a pretty UI. Anything like this exist?
Try http://www.sagemath.org/ and see if there are GUI add-ons...
__________________
The true way is along a rope that is not spanned high in the air, but only just above the ground. It seems intended more to cause stumbling than to be walked along.
mobilehaathi is offline   0 Reply With Quote
Old Feb 26, 2013, 04:19 AM   #5
Ap0ks
macrumors regular
 
Join Date: Aug 2008
Location: Cambridge, UK
You could try any of the following: http://en.wikipedia.org/wiki/List_of..._Python#Python
Ap0ks is offline   0 Reply With Quote
Old Feb 26, 2013, 05:39 AM   #6
8.33
macrumors newbie
 
Join Date: Aug 2011
Spyder may be worth a try. I have tried it before, but it was a bit flakey at the time. May have improved now.

Edit: tried it on Windows where getting python to work is a nightmare. Mac may be happier.
8.33 is offline   0 Reply With Quote
Old Feb 26, 2013, 02:30 PM   #7
telecomm
macrumors 65816
 
telecomm's Avatar
 
Join Date: Nov 2003
Location: Rome
Quote:
Originally Posted by mobilehaathi View Post
Try http://www.sagemath.org/ and see if there are GUI add-ons...
I'd also suggest having a look at Sage.

Sage might work if you like the notebook view, once you've got sage running type
Code:
notebook()
in the command line and it'll open up your web browser where you can essentially type commands in directly (though it's a bit limited if you're looking to do much Python coding, it's handy if you want to do lots of math).

Edit: oh, and to close the notebook view, go back to the terminal window any type control+c to end the notebook, then control+d to exit sage completely... the documentation for Sage is one of the weak points, and it took me a while to figure this out.
telecomm is offline   0 Reply With Quote
Old Feb 26, 2013, 02:33 PM   #8
balamw
Moderator
 
balamw's Avatar
 
Join Date: Aug 2005
Location: New England, USA
Sage looks interesting. May I ask why Python? If you want something Matlab like and free, why not GNU Octave?

B
__________________
MBA (13" 1.7 GHz 128GB), UMBP (15" SD 2.8 GHz), UMB (13" 2.4 GHz), iMac (17" Yonah), 32GB iPad 3 WiFi+LTE, 64 GB iPad WiFi, 32 GB iPhone 5, Airport Extreme
balamw is offline   0 Reply With Quote
Old Feb 26, 2013, 02:48 PM   #9
estorstenson
macrumors member
 
Join Date: Jan 2013
I think what you are looking for is: http://matplotlib.org/ You'll want to get iPython, numpy and possibly scipy, but there are a few distributions that package up numerical oriented packages together, and they'll usually have these together. One (non-free, depending on your situation) is http://www.enthought.com/products/epd.php. It's free for students and academics. There are probably quite a few others as well, and it's usually easy enough to install the components you need, too, if you are somewhat familiar with the command line.
estorstenson is offline   0 Reply With Quote
Old Feb 26, 2013, 05:38 PM   #10
saberahul
Thread Starter
macrumors 68040
 
Join Date: Nov 2008
Location: On my iPad
Quote:
Originally Posted by balamw View Post
Sage looks interesting. May I ask why Python? If you want something Matlab like and free, why not GNU Octave?

B
Looking to learn a new language with Python. Matlab is good but not as universal - for example, I cannot use it on my iPhone without running Matlab on my computer which is a very expensive product.
__________________
iPhone iPad MacBook Pro
saberahul is offline   0 Reply With Quote
Old Feb 26, 2013, 11:36 PM   #11
kaydell.leavitt
macrumors regular
 
Join Date: Apr 2010
Using BBEdit With Python

I edit Python using BBEdit. BBEdit has a good Mac GUI and is full-feaured including being able to view invisible tabs and spaces which can be important when working with Python text files to keep the indentation consistent.

BBEdit also has a feature called "Zap Gremlins" that you can use to eliminate bad characters from your source code.

It also has a feature to be able to compare source files and even whole directories so that you can see the differences between versions.

And BBEdit allows you to run source code, including Python, from BBEdit without leaving it.

BBEdit doesn't have a command line. But if you really need to work interactively on occasion, you can go to Terminal and type in "python".

If you don't want to use BBEdit, there is a version of IDLE that runs on Mac OS X that has both an editor and a window with an interactive mode. I don't like IDLE because when I first tried it, I chose "Preferenes" from the Apple menu and it crashed. So, I lost my confidence in it.

You can google for "BBEdit Download" or "Python Mac IDLE Download" and find these products.

If you want something like BBEdit, nearly as good, but free. There is TextWrangler. You can find that by googling for "Text Wrangler Download".
kaydell.leavitt is offline   0 Reply With Quote
Old Feb 26, 2013, 11:40 PM   #12
macjram
macrumors 6502a
 
Join Date: Dec 2008
Sublime Text 2

You can run your python code on it (to some extent) and it has a shell. It's free trial kind of lasts forever, just say no to when it asks you to purchase.

I love it.
__________________
2010 Macbook Pro, iPhone 4S
macjram is offline   0 Reply With Quote
Old Feb 27, 2013, 10:03 AM   #13
estorstenson
macrumors member
 
Join Date: Jan 2013
If you aren't actually looking for Matlab's graphing functionality, you might look at ipython's HTML Notebook. It gives you an interactive shell that you can record your sessions and then access them remotely (assuming you can reach your machine via a web browser@some random port). It's still very much a command line oriented tool, but it has some interesting features: http://ipython.org/ipython-doc/dev/i...lnotebook.html

There are several IDEs that support python, but they don't necessarily offer you a shell that is much different than the standard interactive Python shell. iPython is probably the best, and does integrate nicely with Matplotlib for graphing things as you explore your data.
estorstenson is offline   0 Reply With Quote
Old Feb 27, 2013, 10:28 AM   #14
balamw
Moderator
 
balamw's Avatar
 
Join Date: Aug 2005
Location: New England, USA
Quote:
Originally Posted by saberahul View Post
I cannot use it on my iPhone without running Matlab on my computer which is a very expensive product.
FWIW the latest versions of the iOS app give you "MATLAB in the cloud" functionality if you have a license under maintenance. It's definitely not cheap, but for what I use it for it's worth every penny.

There are also similar apps for octave. i.e. cheaper. I haven't used either.

e.g.

https://itunes.apple.com/us/app/octa...508953667?mt=8
https://itunes.apple.com/us/app/octa...467653632?mt=8

Quote:
Originally Posted by estorstenson View Post
There are several IDEs that support python, but they don't necessarily offer you a shell that is much different than the standard interactive Python shell.
I spent some time looking at the iOS options since that seems to be a bit of a driver for the OP and found this generally to be true there too.

Of the ones I did find, Pythonista seems to be the most full featured, and might well be worth the $5.

B
__________________
MBA (13" 1.7 GHz 128GB), UMBP (15" SD 2.8 GHz), UMB (13" 2.4 GHz), iMac (17" Yonah), 32GB iPad 3 WiFi+LTE, 64 GB iPad WiFi, 32 GB iPhone 5, Airport Extreme
balamw is offline   0 Reply With Quote
Old Feb 27, 2013, 12:06 PM   #15
telecomm
macrumors 65816
 
telecomm's Avatar
 
Join Date: Nov 2003
Location: Rome
As always, there are Sage alternatives as well, check out

https://itunes.apple.com/ca/app/sage...496492945?mt=8

which is basically a front end for the Sage online notebook. (Incidentally, I've been using the facility of developing interactive mathematics activities using the Sage Cell Server, and it's proven really useful, as Sage interactive content can be embedded directly into a webpage - no flash, no java.)

Sage incorporates mathplotlib, Octave, R, Maxima, NumPy, SciPy, etc., so it's really the one to beat.
telecomm is offline   0 Reply With Quote
Old Feb 27, 2013, 07:07 PM   #16
saberahul
Thread Starter
macrumors 68040
 
Join Date: Nov 2008
Location: On my iPad
Quote:
Originally Posted by balamw View Post
FWIW the latest versions of the iOS app give you "MATLAB in the cloud" functionality if you have a license under maintenance. It's definitely not cheap, but for what I use it for it's worth every penny.

There are also similar apps for octave. i.e. cheaper. I haven't used either.

e.g.

https://itunes.apple.com/us/app/octa...508953667?mt=8
https://itunes.apple.com/us/app/octa...467653632?mt=8



I spent some time looking at the iOS options since that seems to be a bit of a driver for the OP and found this generally to be true there too.

Of the ones I did find, Pythonista seems to be the most full featured, and might well be worth the $5.

B
Yup, Pythonista is the one I'm looking for (now if I could only find something as nice looking and feature filled on the Mac). Love the interactive screen where I can do simple calcs on the go. Thanks!
__________________
iPhone iPad MacBook Pro
saberahul is offline   0 Reply With Quote
Old Feb 28, 2013, 05:27 AM   #17
msjones
macrumors 6502
 
Join Date: Oct 2007
Location: Nottinghamshire, UK
I use CodeRunner. It has a small price tag but the application is pretty good.
__________________
MacBook Pro / Nexus 4.
InfoSec guy.
msjones is offline   0 Reply With Quote
Old Feb 28, 2013, 05:44 PM   #18
saberahul
Thread Starter
macrumors 68040
 
Join Date: Nov 2008
Location: On my iPad
So did a lot of research and came across R64. Did more research and came across RStudio. These apps are awesome! They aren't python but they definitely replace Matlab and look great too (RStudio does).
__________________
iPhone iPad MacBook Pro
saberahul is offline   0 Reply With Quote
Old Feb 28, 2013, 10:29 PM   #19
mobilehaathi
macrumors 601
 
mobilehaathi's Avatar
 
Join Date: Aug 2008
Location: Bay Area, CA
Quote:
Originally Posted by saberahul View Post
So did a lot of research and came across R64. Did more research and came across RStudio. These apps are awesome! They aren't python but they definitely replace Matlab and look great too (RStudio does).
R certainly doesn't replace Matlab for much outside of statistics...

Although if it satisfies your needs, great!
__________________
The true way is along a rope that is not spanned high in the air, but only just above the ground. It seems intended more to cause stumbling than to be walked along.
mobilehaathi is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Do mac's have nano editor or vi editor ? MacHaris Wasteland 0 Jun 24, 2013 09:32 AM
Matlab interpolation dukebound85 Mac Programming 11 Jun 20, 2013 07:14 PM
Help on choosing a editor? What's your editor of choice? Penny23 Web Design and Development 20 Apr 12, 2013 12:10 PM
Matlab help rokusho1 Mac Basics and Help 2 Nov 8, 2012 06:19 PM
Python IDE or text editor that can recognize API specific syntax thekev Mac Programming 2 Sep 4, 2012 05:49 AM

Forum Jump

All times are GMT -5. The time now is 10:09 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC