New Beta for Pythonista 3.3
-
There's now a public beta for the upcoming Pythonista 3.3. If you signed up for a Pythonista 3 beta previously, you should have received a notification from TestFlight. If you're not a beta tester yet, but would be interested in testing, you can just use this link to sign up (I no longer need to collect your email address for this):
https://testflight.apple.com/join/qDkBu2ur
It's a beta, and I wanted to have it out before the holidays, so some things aren't quite done yet, others aren't polished yet, but it should overall be quite usable and not worse than the App Store version in any significant way. If you're new to this: If you install the beta, it replaces the App Store version on your device, but you won't lose data. It works like a regular App Store update in that regard.
I'm really curious what you'll create with the custom keyboard extension!
Full release notes below:
New Features
-
New scriptable keyboard extension and associated
keyboard
module:- First off, this is not intended to replace the system keyboard or your preferred third-party keyboard for most of your typing. It's much more like the emoji picker, i.e. you'd typically switch to it just for specific tasks. The keyboard does not support any kind of AutoCorrect or QuickType suggestions. Just switch to the system keyboard if you need those (hold the 'globe' key).
- You can enable the keyboard in the Settings app (General > Keyboard > Keyboards > Add New Keyboard). It already includes various script shortcuts from the examples folder that you can try right away. If you want to add your own scripts, use the new "Shortcuts..." option from the 'wrench' menu.
- You can use the keyboard for simple things, like quickly inserting the current date/time in your favorite format, or even show a custom UI, like a calculator, in the keyboard view (or above a standard QWERTY keyboard). Have a look at the included examples to get an idea of what's possible.
- The
keyboard
module includes keyboard-specific functionality for inserting text, modifying the cursor position, showing user interfaces in the keyboard, and more. - Generally, the Pythonista keyboard does not require that you enable 'Full Access', but you can't use some functionality in your scripts then (e.g. clipboard or network access).
- Note: If you have a hardware keyboard connected to your iPad, and the Pythonista keyboard does not show up on screen when you select it, please tap and hold the
˅
button in the bottom-right corner of the screen. This should normally not happen when you set the Pythonista keyboard's primary language to 'Emoji'.
-
Support for Siri & Search shortcuts:
- This allows you to integrate Python scripts in various places on iOS. You can invoke shortcuts using Siri with custom voice commands, run them from Spotlight Search, or add them to larger automation workflows in the iOS 12 Shortcuts app.
- Please note that "background" shortcuts (i.e. those that don't launch the Pythonista app) have very limited resources (RAM) available to them, so you're somewhat limited in what you can do without launching the full app. Also, you cannot implement any interaction within Siri, except for reacting to a tap on the Siri result.
- The
shortcuts
module provides useful utilities for shortcut scripts, but you can also just use theprint
function and e.g.ui.Image.show
to produce simple output, as you would in a script that runs in the app.
-
Improved and unified UI for creating shortcuts and Pythonista URLs -- This allows you to create script shortcuts for Siri & Search, the new Pythonista keyboard, the share sheet extension, editor actions, and home screen icons, all from one place: The new "Shortcuts..." option in the 'wrench' menu. This also contains a new Pythonista URL generator for creating various kinds of
pythonista3://...
URLs more easily. -
Revamped
notification
module with support for custom actions (buttons), location-based and repeating notifications, and more. The module also works in Pythonista's app extensions now (it was previously main app only). -
The console's history is now persistent (i.e. saved when you quit the app). You can also delete the console history by tapping and holding the '^' button now.
-
Scripts stored in iCloud are now compatible with the built-in "Run Script" and "Edit Script" actions of the (Apple) Shortcuts app. Just prefix the script name/path with "iCloud/", e.g. use "iCloud/MyScript.py" (without quotes).
Built-in Modules
-
Added
location.render_map_snapshot
function to thelocation
module for generating map images (using Apple Maps data). -
Improved
photos.capture_image
function with the option to use the selfie camera by default. -
Added
cb.Peripheral.manufacturer_data
incb
(CoreBluetooth) module. -
Added
ui.Label.scales_font
andui.Label.min_font_scale
attributes toui.Label
. -
Added
reminders.Reminder.priority
andreminders.Reminder.url
attributes in thereminders
module. -
Changed the default file type for
dialogs.pick_document
to'public.item'
(instead of'public.data'
, this works better for unknown file types). -
Added (third-party)
emoji
module. -
Added documentation for
ui.TextField.begin_editing
,ui.TextField.end_editing
, andui.TextField.secure
.
Bugfixes
-
Fixed a crash when saving images from the console when access to the photo library has not been granted yet.
-
Fixed an issue with the extra key row hiding console input on 2018 iPad Pros.
-
Fixed a crash when using arrow keys on an external keyboard while the on-screen keyboard is visible.
-
Fixed problems with using iCloud scripts in the share sheet extension.
-
Fixed triple-quoted byte strings and f-strings not being syntax-highlighted correctly.
-
Fixed 'wrench' actions not being saved when invoked from the script library.
-
Fixed broken
turtle.pen
function.
Miscellaneous
- Selecting Python 2.7 as the default interpreter shows an "end of life" warning now (Python 2.7 will cease to be officially supported by the Python Software Foundation in 2020).
Have fun testing!
-
-
Hi @omz,
I have a weird bug... I was working on one of my projects with pyui files. I wanted to change the name of the component (a table view) and to my surprise it deleted the component. Actually, it deleted the component because of the backspace keystroke (since I wanted to change the name). Then I realized that also, any of the direction keys (up, down, left, right) weren’t working as well. All the other keys however are working. I then realized it was the physical keyboard that didn’t work in the pyui file. When I use the on-screen keyboard, everything works including the backspace. And only in the pyui fille display because if, for example, I try to use the backspace key from the physical keyboard from, let’s say the run text field (when you press a few seconds on the « play » icon), it’ll work.Let me know if you need more info.
D
-
I tested the new BETA build 330012
it still crashes when I use the in 330007 new introduced key_command feature
Pythonista.app completely exists when pressing the 'a' key on the external BT keyboard
# coding: utf-8 import ui import console class UIView (ui.View): def get_key_commands(self): print('get_key_commands') return [{'input': 'a'}] #return [{'input': 'a', 'modifiers':'cmd'}] def key_command(self,sender): print('key_command='+str(sender)) def main(): main_view = UIView(frame=(0, 0, 400, 400)) main_view.name = 'Key Commands Demo' main_view.present('sheet') if __name__ == '__main__': main()
@omz Do you still have some working example code of the new keycommand API ?
EDIT: OMZ wrote me. Although title is optional as written in the documentation, it must be set in the BETA otherwise it crashes.
so the statement
return [{'input': 'a', 'title': 'a'}]
repairs keycommands for the BETA. It will be fixed in the coming builds...
-
Ole Zorn has released the first Beta of the next version of Pythonista which has shortcuts support.
http://www.sirihacks.net/
-
@omz regarding passing output: iOS 13 has API's for that! Please support them! :takemymoney:
-
@omz when is this releasing? Can we get an ipa for the beta cos it’s full
-
Could I also please request that the new "open external file" and "open external directory" api be supported, so I can use Pythonista to access files AND directories in WorkingCopy. Yay Cheers Dave.
-
Will this version will support Pandas ?
-
@manitsy, no.
Use Google to search for ”Pythonista issues Pandas”.
-
Just purchased Pythonista 3 and its 3.2 (I had an earlier version as well)
Is this correct 3.3 still not released?
Many Thanks
-
@eskdale yes, 3.3 is in beta mode, hoping released soon
-
Is there a release timeline? The beta is full and I would like to be able to take advantage of the keyboard.
-
@videoMonkey All we can say is that current beta build expires in 61 days
-
Beta has expired....Any way of renewing?
-
@robertiii no, but we hope the definitive version will arrive soon
See also this topic
-
Any news?
-
@ltddev No but it will come soon. Here is what ole said about "dark mode support", some days ago:
"This is the last feature I wanted to put in the 3.3 release because it's obvious and easy. I still need to make some cuts elsewhere, but I'm happy with this overall, and some future plans and new perspectives are starting to take shape."
Thus, we can be optimistic
-
"There's many a slip 'twixt the cup and the lip"
Please everyone continue to be patient and compassionate - Ole has publicly said that recent delays are due to his mental health and other personal reasons. It takes time to come back from that kind of thing and the path is rarely linear so his recent progress with feature development and his high levels of communication on Twitter should not be seen as guarantees.
Love to all
-
Ole just tweeted that he plans to submit 3.3 to the app store over the weekend, with a new Test Flight version also being available at that time too! Release notes shown in his tweet as well.
Super exciting! Looking forward to official 3.3 next week hopefully!
Congrats Ole!
-
@Zoot can you clarify the meaning of, "...a new Test Flight version also being available at that time too!"?
My understanding would be once the code goes golden in the app store, it means the release is no longer "in beta" and if that is the case, beta testing for this release is effectively wrapped up and Ole does not need beta testing any more and a beta build would cease. If that is the case, what is the purpose of a "new Testflight version"?
-
Ole wrote: "Here are the App Store release notes I've prepared for Pythonista 3.3. I intend to submit over the weekend, a pre-release version will be on TestFlight as soon as it's finished processing on Apple's servers."
So the implication seems to be that TF will allow access as a "prerelease" between the time it's submitted and whenever it's (hopefully) approved, but that's purely a guess.