omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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

    Pythonista
    wkwebview
    2
    4
    837
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • kaan191
      kaan191 last edited by

      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

      1 Reply Last reply Reply Quote 0
      • JonB
        JonB last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • JonB
          JonB last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • kaan191
            kaan191 last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors