tags:

views:

1464

answers:

6

Is there an online Python interpreter or some such that would allow me to try out simple python code from my iPhone?

Something like try ruby! (in your browser) for Python, and works with the iPhone?

+8  A: 

No. Python and all interpretation is strictly verboten on the iPhone.

That said, if you jailbreak your phone, you can install linux with python and go to town.

Edit: I didn't notice the word "online" before. Here's an online python interpreter:

http://try-python.mired.org/

Randolpho
I think he is asking for a webpage in which he can paste some Python code to run it.
Sinan Taifour
+1 for edit :) -
Sinan Taifour
Thanks, looks good
Ian P
You don't have to install linux after having jailbroken the iphone, just python and a terminal will do.
Markus
+7  A: 

CodePad allows you to run snippets of Python code (and many other languages!).

Sinan Taifour
Thanks, exactly the kind of thing i was looking for.
Ian P
+2  A: 

If you jailbreak the phone and install cydia, cydia can install python, including a sample python app integrating the iphone objectivec api.

I tried this myself and found it to be both very arcane (as a Python programmer who doesn't know any ObjC) and a little on the slow side. Very promising, though.
Ben Blank
PyObjC, that is. The command-line Python interpreter is exactly what you'd expect. :-)
Ben Blank
A: 

Also worth noting that This javascript-free one works.

Ian P
A: 

Maybe try http://live.codenode.org, which I've seen been used with an IPhone.

clemesha
A: 

The Sage notebook (http://sagenb.org) can be set to Python mode, and it allows you to run arbitrary Python code over the web. It has an evaluate button that I specifically added so I could use it from my iPhone/iPad. I'm currently working on more support (e.g., tab completion like with iPython for the iPhone).