omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. georg.viehoever
    3. Topics

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 11
    • Posts 38
    • Best 2
    • Controversial 0
    • Groups 0

    Topics created by georg.viehoever

    • georg.viehoever

      Today Widget: Get print() working
      Pythonista • • georg.viehoever

      13
      0
      Votes
      13
      Posts
      9081
      Views

      wnMark

      No luck for me on iphone6 or iphone5s.

    • georg.viehoever

      HealthKit access?
      Pythonista • healthkit objcutil • • georg.viehoever

      12
      0
      Votes
      12
      Posts
      13668
      Views

      idvorkin

      It’s been a while since this thread was created. Have there been any updates in that time? Just being able to read “safe” data like weight and sleep would be very helpful.

    • georg.viehoever

      Beta sharesheet Run Pythonista Script : no cancel
      Pythonista • terminate sharesheet beta • • georg.viehoever

      3
      0
      Votes
      3
      Posts
      3051
      Views

      georg.viehoever

      Yes, clicking top Right Works.

    • georg.viehoever

      Add to homescreen
      Pythonista • • georg.viehoever

      15
      0
      Votes
      15
      Posts
      12025
      Views

      JonB

      yes, sadly you still have to press "ok". but you can use the pythonista:// url scheme to run a script, with arguments.

      I used this for a while to run a script that logged into my library, web scraped the list of upcoming renewals, then renewed all books that were due within 3 days, then set a new notification based on the next books due (which launched the renew script).

    • georg.viehoever

      Wishlist: Reset interpreter
      Pythonista • • georg.viehoever

      7
      0
      Votes
      7
      Posts
      4274
      Views

      JonB

      @Phuket2 you can create your own action menu item which does what you say. I have an action menu to run a script in the same interpreter ( without clearing globals) because i find that easier for debugging. You could add some lines before/after the execfile.

      # execute script in editor, in current interpreter session without clearing globals import editor,os file=editor.get_path() os.chdir(os.path.dirname(file)) execfile(file)
    • georg.viehoever

      Wishlist Beta: Traceback should show path to file
      Pythonista • • georg.viehoever

      7
      0
      Votes
      7
      Posts
      4580
      Views

      JonB

      import pdb; pdb.pm()

      does work, though of course exceptions in threads are not catchable like this. i also use pdb.settrace in my code where i want to trigger the debugger.

      an idea i have had, but never worked on seriously, would be to subclass Pdb/Bdb to incorporate more of a visual debugger. for instance keeping the editor line in sync with the current debug line, watchlists, etc. I played around a little using codemirror inside a webview which allows things like setting of breakpoints, line highlighting, etc.

    • georg.viehoever

      `import sysconfig; sysconfig.get_platform()` produces traceback ...
      Pythonista • • georg.viehoever

      8
      0
      Votes
      8
      Posts
      4874
      Views

      JonB

      ahhh, thats because i have a faked _os_x_support.py. as a workaround, place the following somewhere on the path, like in site-packages:

      def get_platform_osx(cvar,osname,release,machine): return osname,release,machine
    • georg.viehoever

      Wishlist:: API/GUI for New Interpreter
      Pythonista • • georg.viehoever

      2
      0
      Votes
      2
      Posts
      1721
      Views

      georg.viehoever

      I had a look ar the PyNewInterpreter API. It might be a way to create threads that have a little bit more privacy than the current ones. It appears that I cannot use the API via ctypes (because that would mean that in interpreter thread needs to manipulate itself). But I think that some Pythonista-provided functionality would be possible.

      Please consider this for a future release (or convince Apple to allow sub-processes in iOS - whichever is easier for you ;-) )

      Thanks,
      Georg

    • georg.viehoever

      Limitations due to iOS
      Pythonista • • georg.viehoever

      6
      0
      Votes
      6
      Posts
      7432
      Views

      simonh

      Apple Watch has much more processing power than Apollo 11.

    • georg.viehoever

      Pyro4 fun: Controlling your PC from Pythonista
      Pythonista • • georg.viehoever

      1
      0
      Votes
      1
      Posts
      3363
      Views

      No one has replied

    • georg.viehoever

      stash: pip install Pyro4 fails
      Pythonista • • georg.viehoever

      3
      0
      Votes
      3
      Posts
      3081
      Views

      georg.viehoever

      Yes, i did install serpent. In this case, pip does the trick. I guess there is something special about the way that Pyro4 is packaged that is not handled properly by the Stash version of pip.

      Georg