Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Pythonista 3.4 with python 3.10 is out (praise the snake god !)
-
Welcome to Pythonista
Thank you for downloading Pythonista! You now have everything you need to build and run Python scripts directly on your iPhone or iPad.
To give you an idea of what you can do with the app, various sample scripts are included in the Examples folder (just tap the link to open it). Feel free to use them as starting points for your own experiments. To share your creations, get help with coding problems, or just to meet fellow Pythonistas, please visit our community forum.
Getting Started + Tips
If you're new to Pythonista, here are some tips to help you get up and running:
-
To create a new script, first tap
≡
to reveal the library, then+
(at the bottom). You can also use left and right swipe gestures to switch between the file browser, editor, and console panels. -
The editor supports multiple tabs – tap the button in the top-righthand corner to add a new one. You can also create new files from an empty tab.
-
The settings ("gear" button in the file browser) contain useful options to customize the editor font, color theme, indentation type (tabs/spaces), and much more.
-
Swipe left to show the console (REPL) panel. This is where text output appears, and you can use the prompt at the bottom to evaluate individual lines of Python code directly.
-
You'll also find the included documentation in the console panel; simply tap the
(?)
button to open it in a separate tab. Reference documentation is also available while you're editing code -- simply select a word (e.g. a function name), and choose Help… from the menu. -
For easier navigation in long scripts, tap the file name at the top to show an outline/list of classes and functions. This is also where you can rename the current file.
-
If you have a hardware (e.g. Bluetooth) keyboard attached to your iPad or iPhone, you can navigate almost all of Pythonista using keyboard shortcuts. Press and hold the Cmd (⌘) key to show keyboard shortcuts that are currently available.
-
The "wrench" menu contains various options for checking your coding style and formatting your scripts. You can also pass arguments (
sys.argv
) to a script, using the "Run Options" menu, and you can add your own script shortcuts to this menu to extend Pythonista's functionality. (Have a look at theeditor
module if you're interested in automating Pythonista itself.) -
A lot of keys on Pythonista's extra keyboard row have multiple mappings. For example, you can tap and hold the tab key to get an unindent option.
-
Tap with two fingers in the editor to select an entire line of code.
-
The "Shortcuts" option in the "wrench" menu allows you to integrate Pythonista scripts with various parts of iOS, like the share sheet, the on-screen keyboard, and apps that support opening custom URL schemes. You can also generate QR codes from script URLs there.
-
Swipe right on a file in the script library for more options, e.g. to open files in new tabs. Swipe left to delete files.
If you enjoy coding in Pythonista, please consider leaving a rating or review in the App Store. Thank you!
💚New in 3.4
-
Pythonista now supports Python 3.10, so you can use structural pattern matching, assignment expressions (added in 3.8), and many other new language features and improvements in the standard library.
-
Python 2.7 is no longer included. The official PSF support for Python 2.7 has ended in 2020, so it simply made no sense to update it in 2023.
-
Shortcuts integration: You can now use Pythonista scripts as actions in Apple's Shortcuts app, without launching the app. The
shortcuts
module has additional functions to accomodate handling input/arguments passing data to other Shortcuts actions. -
Improved documentation with modernized layout, dark mode, and additional content about third-party libraries.
-
Fixed an issue with the up/down arrow keys not working correctly in the editor.
-
Improved support for the Magic Trackpad (and other pointer devices) on iPadOS.
-
New text selection gestures in the editor for iOS 13+ (closer to system text gestures).
-
Added
pandas
and updated various other third-party modules to more recent versions. -
Pythonista now requires iOS 12 or later.
Feedback
I hope you enjoy coding in Pythonista. If you have any feedback, please send an email to pythonista@omz-software.com, or visit the community forum to share code and get help with your programming questions. You can also find me on Twitter:@olemoritz.
-