WKWebView in interactive prompt
Hi all & @mikael
Substituting WKWebView for ui.WebView in one of my scraping routines worked like a charm - thanks and excellent work!
While testing my way around the wkwebview library, I found it impossible to work with an instance of the WKWebView class. If I stored an object into variable "w" for instance, the instant I press full stop (which brings Pythonista auto complete up), Pythonista simply ceases/freezes, and I have to force quit the app (I've waited for minutes to see if it would uncease).
Like I said, it works fine in scripts, just can't work with it dynamically in REPL as I could with ui.WebView. I've done a clean Pythonista install, behaviour is the same.
Is this expected behaviour?
You might try presenting in a
panelinstead of a sheet or Fullscreen. Those done work well with debugging.
Is the problem when you type w then period? Some modules have trouble with autocomplete. For example, requests objects are often very slow to autocomplete. The workaround is to pretype the word after the period, and paste the whole thing. Or, write the period and then tap before the period to insert the variable name.
Thanks @JonB ; it's more the latter, it ceases up the second you press full stop (and doesn't even show the "." following the instantiated object).
And yes I'm referring to @mikael 's pythonista-webview.
It's not a biggie in any case, was just wondering if the same happened to others.