I recently found out about an iOS IDE known as Pythonista, which claims to be a full Python 3.6 IDE and interpreter for the iOS platform, including several important libraries and bindings for native iOS APIs. My question is: how does it work? My understanding of the iOS security model is that all code must be signed and all (non-Apple) apps that dynamically generate or execute code are automatically banned from the App Store. This is the rule that prevents people from writing compilers, interpreters, shell terminals, emulators, virtual machines, etc. for iOS and offering them on the App Store. How does Pythonista get away with having a Python interpreter without running afoul of Apple? Is it running the code remotely on a server?
Pythonista is a complete scripting environment for Python, running directly on your iPad or iPhone. It includes support for both Python 3.6 and 2.7, so you can use all the language improvements in Python 3, while still having 2.7 available for backwards compatibility.
While Android and iOS will not run interpreted code, you can use a Python mobile app framework like Kivy or BeeWare to write your mobile application in Python and then cross-compile it for Android or iOS. Learn more about Python's built-in elements.
Python for iOS and iPadOS Pythonista is a complete development environment for writing Python scripts including third-party libraries and system integration on your iPad or iPhone.
This article is about a year old now, but still relevant. Pythonista and Codea (for Lua dev on the iPad) are both very successful apps and I can attest to their high quality. Get them and see. The code runs natively on your iPad - not on their servers. There are active development communities for both of these apps. See the forums on the developer websites: Pythonista and Codea.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With