Wish list for post 3.3...
It's awesome to have official 3.3! Best iOS app ever.
Things I would love to see in the future...
#1 A dark mode for the built-in documentation so I don't turn to dust when I open it every time.
#2 Ability to do a split-screen view showing the Console REPL and a documentation viewer at the same time to allow little experimental doodles while reading the manual.
#3 Python 3.8.x of course. But having only 3.6 is hardly a big limitation at the moment.
Things like Pandas and scikit-learn (or even TensorFlow/PyTorch as long as we're dreaming) would be cool, but honestly, I'm pretty happy with the libraries and functionality that's there today. I use Pythonista mostly as a portable testbed for standard Python stuff that ends up on another platform rather than either for iOS app development or trying to do on-device-data-science. I find it the perfect companion for reading Python documentation or books.
Also, I would not be bothered in the least if Python 2.x were dropped completely.
@cvp, wow! You are the hacking wizard.
How did you find the path to the doc bundle?
@mikael After opening the doc tab (with ?), Î've analyzed the tree and I found this
b'RoundedShadowContainerView' b'UIView' b'UIView' b'UIView' b'UIView' b'UIView' b'UIWebView' b'_UIWebViewScrollView' b'UIWebBrowserView' Pythonista Documentation Welcome! This is the documentation for Pythonista. It is based on the official Python 3.6.1 documentation and includes information about additional modules that were developed specifically for Pythonista.
Then, I made a dir of the UIWebBrowserView, and one of its properties (I don't remember which one) gave me this url.
@cvp, so, no big deal, easy to find, well documented. :-)
@mikael Sure 😅
My only hard/long (for me) work was to try to
- open the console in partial screen (already solved in a previous topic)
- present a view without hiding the console, even if you can't really access it
- simulate tapping the command TextField
- simulate tapping the previous/next history buttons
- move my own buttons up/down when the keyboard (dis)appears
If I didn't' find the url, I would set the web doc url
Be careful, my script has a bug if the standard doc tab is open when you start the script.
@cvp I'm quite impressed by your reverse engineering skills. Very clever! 👍
@omz Thanks, only patience and enough free time 😀
Only clever thing is your marvelous app which allows to realize such process.
@mikael Property to find url was
if 'UIWebBrowserView' in str(sv._get_objc_classname()): #print(dir(sv.webView())) print(sv.webView().mainFrameURL())
This is quite a good hack @cvp. Every problem looks simple once you solve them so this is not as easy as you make it look. My Pythonista wish list is for the app to reveal the secret of the afterlife because we only live twice. This means that to me Pythonista is already a dream come true that allowed me to achieve many important goals using an iPad. It is good as it is and whatever comes next is welcomed. However, please do not remove Python 2.xx.
I was all good up until
please do not remove Python 2. It is dead, people. It already lived its two lives. Look at the issues just in this past week on this forum which are about Unicode encoding. Let's allow that stuff recede into the past where it belongs. Drop legacy Python because it is legacy.
@ccc I understand that you/we want to use the latest Python level, but I don't understand the disadvantage to also keep Python 2 support in Pythonista for people who want it.
I say that I don't understand, not that there is no disadvantage
this is not as easy as you make it look
I agree, that's why I said it was hard and long for me 😅
Tools never die @ccc. Will the concept of a hammer or that of the screwdriver die at some point? Even the basic lever is still useful when you only have a stick and a rock to lift a heavy weight. Python 2.xx will always be as useful as it ever was. I went over that discussion with you and others many times as you may remember. No one has ever provided a valid reason for the removal of Python 2.xx from Pythonista. Basic impulses can not dictate the direction of a logical entity (Pythonista).
@cvp like the french philosopher Deleuze said: "Il fallait y penser!".