Pythonista 1.6 Beta
So, with Apple's new TestFlight, I can finally have a lot more beta testers, and won't have to worry about device limits so much.
If you'd like to play with the next version of Pythonista before it hits the App Store, please send me an email with your Apple ID, and I'll see what I can do. I don't plan to use up all the slots yet (I might need some later), but if you've been posting here, there's a very good chance that I can give you access to the beta.
As for what to expect, here's a list of the new features in the current beta:
- Improved support for the iPhone 6 and 6 Plus screen sizes
- Removing files from the library moves them to a trash folder instead of deleting them immediately.
- URLs in console output are 'linkified' automatically
remindersmodule for accessing the iOS Reminders database (read/write)
cbmodule for connecting to Bluetooth LE peripherals (experimental)
- New dialogs module as an easy-to-use alternative to the ui module when you just need simple data entry. This also contains functions to import files from the iCloud Drive document picker (iOS 8 only). – note: this is broken in the current beta, but will be fixed in the next few days
@JonB This is an older beta.
There are only 48 hours left on the current beta. Tick tock.
Extra modules in the current Pythonista Beta that are not up-to-date. | module | local | PyPI | | name | version | version | | ------------- | -------- | ---------- | | bottle | 0.12.5 | 0.12.8 | Upgrade possible | Crypto | 2.6 | 2.6.1 | Upgrade possible | ecdsa | 0.11 | 0.13 | Upgrade possible | feedparser | 5.1.3 | 5.2.0 | Upgrade possible | html2text | 2014.4.5 | 2015.4.14 | Upgrade possible | html5lib | 0.999 | 0.99999 | Upgrade possible | httplib2 | 0.8 | 0.9.1 | Upgrade possible | jinja2 | 2.7 | 2.7.3 | Upgrade possible | markdown | 2.2.0 | 2.6.2 | Upgrade possible | markdown2 | 2.2.1 | 2.3.0 | Upgrade possible | matplotlib | 1.3.1 | 1.4.3 | Upgrade possible | mpmath | 0.18 | 0.19 | Upgrade possible | numpy | 1.8.0 | 1.9.2 | Upgrade possible | paramiko | 1.13.0 | 1.15.2 | Upgrade possible | parsedatetime | 1.3 | 1.4 | Upgrade possible | PIL | ????? | 1.1.6 | Pillow upgrade possible | pycparser | 2.10 | 2.13 | Upgrade possible | pyflakes | 0.7.3 | 0.8.1 | Upgrade possible | pygments | 1.6 | 2.0.2 | Upgrade possible | pyparsing | 2.0.1 | 2.0.3 | Upgrade possible | PyPDF2 | 1.22 | 1.24 | Upgrade possible | pytz | 2013b | 2015.4 | Upgrade possible | requests | 2.6.0 | 2.7.0 | Upgrade possible | simpy | 3.0.2 | 3.0.7 | Upgrade possible | six | 1.6.1 | 1.9.0 | Upgrade possible | sqlalchemy | 0.9.7 | 1.0.4 | Upgrade possible | sympy | 0.7.4.1 | 0.7.6 | Upgrade possible | werkzeug | 0.9.4 | 0.10.4 | Upgrade possible | xmltodict | 0.8.7 | 0.9.2 | Upgrade possible | yaml | 3.09 | 3.11 | Upgrade possible | ------------- | -------- | ---------- |
New beta just arrived.
Major bug when updating: whichever script was open in the editor before the update is cleared and becomes an empty file, probably because the release notes are automatically opened.
Before updating, close all scripts and open only an empty tab!
Confirmed. Fortunately I had just checked my file into GitHub or all of my changes would have been lost.
Also, in this upgrade, the
requestsmodule was downgraded (v2.6.0 --> v2.5.1) so that it no longer throws warnings.
posted this to another thread, but in case omz doesn't follow all:
ui.SegmentedControl raises a SystemError when accessing
subviews, and crashes the app when using
Just got my watch and playing with it and Pythonista 1.6.
Any update on things you can do with appex.watch?
Any more examples?
@MartinPacker To be honest, I probably won't ship the watch app with 1.6. I don't think it works well enough, and I can't see a lot of compelling use cases. I'll probably revisit this at some point though.
So I just tried a simple one on the watch:
name=raw_input("What is your name?\n")
The prompt seems to appear AFTER the input is dictated.
I'm on the latest beta.
Is it me or the beta?
@MartinPacker: Here is a very simple
appexexample script to import a file from a URL in, say, Safari. This one copies files already stored in other apps, like the Mail app. I personally don't have an Apple Watch, so I can't give you any examples on that front. It seems, though, from the documentation of the Apple Watch interface, it just executes scripts and provides text to the
raw_input()function, and nothing more. I might be wrong, but that is all I can gather.
Actually the Roll Dice python script uses ui but doesn't take input - and works nicely on the watch. If I do more research on that it might yield something.
One difficulty is actually getting scripts off iPad onto iPhone in "Watch" folder. Anyone know how to do it.
The quid pro quo is I'm motivated to work on getting the Watch functionality known - for when 1.6 is shipped. If that's a post (on my blog) or examples that'd be fine.
I should work with @ccc to get something working from the Watch that talks to an IBM mainframe... :-)
(Google me if you think that last is odd.) :-)
Ah I see @omz's post. I would think if the ui route, rather than raw_input(), works we'd have a winner.
But obviously your prerogative.
The prompt seems to appear AFTER the input is dictated.
The way the current watch "app" beta works is very simple: It can send a request to the iPhone app to start a script, and then it starts polling for events every few seconds (as long as the app is visible on the watch). An event can be text/image console output, or a text input request (
raw_input). The only way to get text input on the watch is to present a full-screen dictation view (which can include "quick reply" options that are set via
appex.watch). If you call
raw_inputdirectly after printing, it's quite likely that the two events arrive at the same time on the watch because of the polling interval, so the text input view covers the screen before you see the print output...
Obviously, this is pretty inefficient, but I haven't found a better way to handle input/output with the current WatchKit SDK. I'm fairly sure that a better app will be possible when watchOS 2 comes out, but I haven't really looked into it yet.
Any estimation for when pythonista 1.6 will be public? Haven't been able to join the beta, and I really wanna use it! A month? Three? A year?
Thanks @omz. I can see the current infrastructure makes it tough to make a decent watch-originated app.
I'm wondering if I can use Workflow to front-end an "on the phone" app with a half decent UI.
As it happens I was just playing; I don't have a real application just yet.
@webmaster4o same here. I've been trying to be as patient as possible. Hopefully it's soon!
Bug: in Editor Actions only the last script shows in the share sheet. Also reported by @GCarver http://omz-forums.appspot.com/pythonista/post/6187778610036736#post-5310158079000576
hyshai, I was about to respond that I didn't have this problem.... until I clicked more, and reordered the scripts.... then all but one disappeared. so the symptom appears to be caused once the more menu is entered...
Oops! Sorry :(