Bug: when running a script via the url scheme (pythonista3://
) it ignores the default interpreter setting and runs the script as 3.5. It also ignores the shebang - #!python2
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.
Best posts made by userista
-
RE: Python 3.x Progress Update
-
RE: Pythonista IRC channel
Great idea! Though I actually would prefer a Slack channel instead of IRC - that way we can have a history (without needing to set up bouncers etc.). Also Slack is much more noob friendly - just signup and go - so it's more conducive for growing a community.
-
RE: objc_util and CommonCrypto
@jadeblaquiere said:
AES is available out of the box, see example usage below.
Thanks you so much! I had no idea the
Crypto
module was included - I didn't see any documentation for it.... (though I probably should've checkedsite-packages
) -
Vibrate module
if possible I would like to request
vibrate
module - would be nice for games etc.
Latest posts made by userista
-
RE: Python 3.x Progress Update
Bug: when running a script via the url scheme (
pythonista3://
) it ignores the default interpreter setting and runs the script as 3.5. It also ignores the shebang -#!python2
-
RE: Python 3.x Progress Update
@omz @Webmaster4o +1 for line numbers (and/or wrap glyphs) pleeeease
-
RE: Is there a way to connect to WiFi devices with Pythonista
@LERS yep I have one - it's a regular WebDav server so using something like https://github.com/amnong/easywebdav would allow you to interact with it.
-
RE: Pythonista IRC channel
Great idea! Though I actually would prefer a Slack channel instead of IRC - that way we can have a history (without needing to set up bouncers etc.). Also Slack is much more noob friendly - just signup and go - so it's more conducive for growing a community.
-
RE: webbrowser.open appex bug?
Hmmmm - that's odd. Workflow is able to open a URL from its app extension.
-
webbrowser.open appex bug?
I'm not sure if this is expected behavior but
webbrowser.open
returns false and doesn't open the URL in the app extension (via console and via script). -
RE: Appex Safari content
@JonB Pythonista could open Safari VC (using objc) but I still don't think it would be able to get the contents of the webpage (after it was loaded) without @omz adding the functionality to Pythonista (like I mentioned in a prior comment). It seems like Pythonista would have to register a JavaScript file that would be injected into the webpage.
-
RE: Appex Safari content
I need the final HTML because it's a page that has multiple iframes embedded inside each other - and I won't know the iframe URLs until runtime. It really would be a job for JavaScript - but the iframes are cross origin and WebKit doesn't allow JS to run cross origin. So I would like to let safari load all the JavaScript/iframes (and block all the ads ;) ) - then use BeautifulSoup to parse the HTML.
EDIT: According to the documentation ('Accessing a Webpage') it seems like @omz would have to add something to Pythonista to allow this to happen. Though since it seems Javascript based, I'm not sure if it would help in my scenario (because of cross origin requests).
-
RE: Appex Safari content
I specifically want to use Safari (or Safari VC) to download the page - it's a JavaScript heavy page, and I also would like to make use of content blockers.