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 3.x Progress Update
-
Yes, the
appex
module seems to have some issues under Python 3:>>> import appex >>> appex.get_attachments() [] >>> appex.is_running_extension() False
Yes, this was run in the app extension.
-
@omz Another console-related issue - AFAICT since Pythonista 2.0,
console.set_color()
with no arguments does not reset the text color to default, like it did in Pythonista 1.5. This is especially an issue because there are light and dark themes - there is no text color that is easy to read on both light and dark backgrounds, so it's impossible to write a script that changes text color in a way that works with all themes. -
-
Thank you for the update to 300007.
I do not know, it was the same in 300006, but now I have a problem with the additional keyboard on my iPad Pro.
If I Press "+" I get an "%" and "+" and a rectangle witout content on the top of the screen. Pressing "/" I get an rectancle without content. Pressing "=" nothing else happens. -
@wnMark For me the extended keyboard has some issues too. The top row's keys work fine when long-pressed, but for the bottom ones the popup is hidden behind the second keyboard row (in portrait mode) or completely out of place (in landscape mode).
-
@dgelessus for me the top line (1,2,3..=) worked like decribed in landscape mode. In portrait it works fine. The bottom line works fine in landscape and portrait mode.
-
While entering a multi-line command, pythonista chokes after the first line, so:
exec('for i in range(10):\n print(i)')
0
1
2
3
4
5
6
7
8
9
for i in range(10):
File "<string>", line 1
for i in range(10):
^
SyntaxError: unexpected EOF while parsing -
-
Thanks, @dgelessus. Are the known issues accessible somewhere so I can read them and try not to clutter up this forum?
-
@geo This one looks like it was only listed in the release notes for an old version, and not on the forum. The Pythonista 2 betas had a "Beta Release Notes" file that was updated with every build, but the Pythonista 3 beta doesn't seem to have that...
-
@omz This is not specific to Pythonista 3, but a few useful sections of the Python docs are included, but not easily accessible, i. e. you need to use search or the global index to get to them.
- Complete Table of Contents - this alone would be enough, then everything would be accessible.
- Python HOWTOs - this includes things like porting to Python 3 and Unicode which are useful for people new to Python 3, but also some generally useful tutorials.
- FAQs - needless to say, those are always good to have.
- Things related to Python's C API - some things are included, some aren't. Of course those aren't of interest to the average user, but definitely useful to the non-average user trying to call the Python 2 API from Python 3 and such.
:)
As mentioned above, if the TOC were linked from the main page of the docs, then this would also be accessible without needing to clutter up the main page.
For iPad users it would also be nice to have the main page in two-column form like on a normal PC. I think in Pythonista 1.5 this was the case, but I may be misremembering that. (And my only device running 1.5 is my old iPhone.)
-
@wnMark said:
Thank you for the update to 300007.
I do not know, it was the same in 300006, but now I have a problem with the additional keyboard on my iPad Pro.
If I Press "+" I get an "%" and "+" and a rectangle witout content on the top of the screen. Pressing "/" I get an rectancle without content. Pressing "=" nothing else happens.Here's a screenshot demonstrating this:
-
@disorientedp That's kind of how it looks for me too, except that it's further down (probably because I use an external keyboard).
-
@omz Thank you!!! Yep its working again and wow that was fast.
-
I am not sure if it is intentional but on my iPad mini 2 running iOS 9.3 when I slide over the file explorer portion I loose all of the settings icons on the top right above the editor window. The old version did not do this.
-
@dgelessus said:
- Things related to Python's C API - some things are included, some aren't. Of course those aren't of interest to the average user, but definitely useful to the non-average user trying to call the Python 2 API from Python 3 and such.
:)
Wait... is that possible!? What about vice versa?
- Things related to Python's C API - some things are included, some aren't. Of course those aren't of interest to the average user, but definitely useful to the non-average user trying to call the Python 2 API from Python 3 and such.
-
@JonB In Pythonista 3, probably yes. The two runtimes are always running in the background, though you can only interact with one through the interactive prompt. I'd assume that you can use the C API to exec code in the other one while it's inactive.
-
@dgelessus , does that mean one runtime could run say bottle or flask for example and stay alive so you could use the other runtime to code against it? maybe a stupid question. Just thinking out aloud
-
Possibly... I don't know how the two runtimes run threading-wise. The startup scripts are executed one after the other, so perhaps you can only run code in one interpreter at a time.
-
@dgelessus , ok thanks. Just interesting if can be done. I am sure with other things also