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.
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?
Cheers
-
Are you using @mikael's pythonista-webview?
You might try presenting in a
panel
instead 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.
-