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.
Python console in the Today widget
-
It turned out my problem with not seeing the text clearly was to do with the accessibility setting: Reduce Transparency, does not work so well in the today view
-
@dgelessus i'm not using pythonista_startup. i restarted the phone and tried it before launching any apps- entered my passcode for the home screen and pulled down. I see the same - the keyboard slides down and then disappears leaving a unable to load message.
i'm using 9.3.1 on an iPhone 6 Plus. let me know if there is anything i can help with if you'd more info. the script works within from within Pythonista.
-
Do you have many other widgets added? That's the only other possible issue I could think of. I'm on an iPad mini 1, which is a few years old, so I wouldn't expect you to have many issues on an iPhone 6...
-
Good point. I had Battery, Launcher, Dataman, and Darksky Next hour. Removed them all and only kept Pythonista, seems better still disappears after a second or two (vs half a second before)
-
pythonista_startup does seem to run in the today widget. Is there a way to check if the interpreter is being run in the today widget? I'd like to modify my startup to bypass if inside the today widget
-
@JonB The widget never runs the startup script.
-
I am using @dgelessus's pythonista_startup, which is a folder called pythonsta_startup in site-packages with an init. My widget is just doing
import appex,ui v=ui.View(bg_color='red',frame=(0,0,200,200)) appex.set_widget_view(v)
but pythonista startup seems to be running ( until i get s could not load)
-
@JonB Okay, that's a bug then. For now, you might want to check
appex.is_widget()
in your startup script. -
@JonB I found the bug, the "preflight" script (for clearing globals etc.) was importing
pythonista_startup
as a side effect. -
I tried the new examples for "Today widget" on my iPad Pro 12,9" with iOS 9.3.2 and all worked fine. But on my iPhone6 and iPhone5s I got the message "Kann nicht geladen werden". I did some reboots! On both iPhones I am running iOS 9.2.1. The widget worked before on iPhone. I am sorry I do not know the beta#
Some hints?
-
@wnMark Please try again with the next beta (later today or tomorrow, I think). There's been an issue with the widget consuming too much memory in the current beta, and I think it'll be fixed in the next build.
-
@omz thank you for your reply. I will try
-
For me it looks the same on Beta 300017. Worked fine on iPad Pro. But all examples do not work on iPhone6.
-
Simple widget exercises work for me on ios8.4 with ipad3... just presenting a few buttons, running a simple script.
One thing I did not know: the widget view seems to persist between calls, (so it seems like a good practice to use get_widget_view before creating new resources... I
-
@omz I've just downloaded Pythonista 3 in App Store. But I can't find Pythonista in my Notification Center. There is no button to enable it. My device is iPhone 6 with iOS 9.0.2.
-
maybe it worked not on all devices
-
Same for me, I can't find it in available widgets. iPhone 6S, OS version 9.3.2.
-
@nicktimebreak @wnMark @mikashkin The Today widget was removed in the release version of Pythonista because it was too unstable - many scripts required more RAM than iOS allows for Today widgets. If you're really interested in my script, you can run it normally in Pythonista, it will appear as a normal sheet view. Trust me, you haven't missed much
:)