How use python on ipad?

If you are using Python for IOS, the following should work, although I haven't yet tried it myself.

Email the program to your own e-mail account as text. Then read the e-mail message on your iPad in any one of several e-mail applications. Cut and paste the text from the e-mail message into the python editor.

Don't cut and paste the code into the interpreter. Then you can't save it, at least not in the current version of Python for IOS. Instead, click on the second icon on the bottom (I think that's the icon, my iPad is at home and I'm not home now), to open the editor. You can save files from the editor using the menu button on the upper right; there's a "save" menu item that allows saving the code to a file on the iPad.

I'll be trying this tonight. Sorry for posting this before trying it, but I'm not sure I'll return to this question later. It 'should' work. (Famous last words!)


you may be interesting in https://www.pythonanywhere.com project.

I am using it on ipad too.


If you're just running command-line Python, then you can edit it and/or upload it to a server and then run it from an iPad ssh terminal client. I know that's not the same as pushing it onto the iPad, and it requires a server and an internet connection, but it's the easiest way.

Otherwise, include a Python interpreter in your app and a UITextView that prints its outputs. Edit the code on your PC (or Mac, I guess), as a file in your Xcode project, and have the interpreter run that code and show the output in the UITextView.

Tags:

Python

Ipad