omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. Olaf
    3. Posts

    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 5
    • Posts 83
    • Best 25
    • Controversial 0
    • Groups 0

    Posts made by Olaf

    • RE: Pythonista 3.4 is out!

      Great, congrats on the milestone @omz !

      posted in Pythonista
      Olaf
      Olaf
    • RE: What what what!! New version in TestFlight!!!

      @omz and it’s available now (with some fixes and for a new period of 90 days)
      ☺

      posted in Pythonista
      Olaf
      Olaf
    • RE: What what what!! New version in TestFlight!!!

      @omz thanks!

      posted in Pythonista
      Olaf
      Olaf
    • RE: What what what!! New version in TestFlight!!!

      TestFlight version will expire in 4 days.

      Any plans for a new version, @omz, either TF or AppStore?
      I'd be willing to buy again if published in AppStore. I understand that old licences cannot pay the bills. But no subscription model please.

      posted in Pythonista
      Olaf
      Olaf
    • RE: Pythonista 3 3.4 (340006) beta: Import pandas throws error

      @ihf try automatic Python 2 to 3 conversion

      Of course, that will not use all newer Python-3 niceties but it should allow most Python-2 scripts to run under Python 3

      posted in Pythonista
      Olaf
      Olaf
    • RE: Is pandas supported on pythonista ?

      Today 18 Jan 2023, a beta of a new Pythonista was made available to testers. This contains a more recent numpy ☺ and pandas ☺☺☺.

      When the beta is promoted to the App Store, all users will benefit from this (and other evolutions like Python 3.10 instead of 3.6).

      posted in Pythonista
      Olaf
      Olaf
    • RE: Pythonista 3 3.4 (340006) beta: Import pandas throws error

      @ihf I cannot reproduce, import pandas works for me.

      But the pandas.__file__ I then get: …/pylib/site-packages/pandas/__init__.py seems to differ from the error messages you get …/Documents/site-packages-3/pandas/__init__.py.

      Could it be you’re not using the built-in pandas?

      posted in Pythonista
      Olaf
      Olaf
    • RE: What what what!! New version in TestFlight!!!

      Great news! Thanks @omz!

      And seems already submitted 7 Dec, hence 48 days remaining of 3-months TestFlight period. Whatever, it’s downloading and I look forward to more modern Python features

      posted in Pythonista
      Olaf
      Olaf
    • RE: Python question about case insensitive replacement

      You can use \1 to refer to matched text grouped by () in the regex. So:

      import re
      my_text = 'Word word'
      src_str  = re.compile('(word)', re.IGNORECASE) 
      my_text = src_str.sub(r'\1xxx', my_text)
      print(my_text)
      posted in Pythonista
      Olaf
      Olaf
    • RE: Can’t load module “dict”

      dict is a built-in type, not a module that needs importing
      What are you trying to accomplish, @Sway?

      posted in Pythonista
      Olaf
      Olaf
    • RE: Pythonista Undo

      @edenb thanks!

      posted in Pythonista
      Olaf
      Olaf
    • RE: New Beta for Pythonista 3.3

      Happy to see you @omz and the update!

      posted in Pythonista
      Olaf
      Olaf
    • RE: Function at end of variable (Don't really know how to sum up this question)

      @JITASIDA
      No, you can't
      That would require adding a method to a built-in type and that's not possible (without going to the C source for Python):

      >>> str.clean=lambda self:'clean'+self
      Traceback (most recent call last):
        File "<string>", line 1, in <module>
      TypeError: can't set attributes of built-in/extension type 'str'
      
      posted in Pythonista
      Olaf
      Olaf
    • RE: Keyboard switch.

      The error results from your lines not being well-aligned
      Unindenting the x=... and y=... lines should fix it

      posted in Pythonista
      Olaf
      Olaf
    • RE: Typed Python interface stubs for editing Pythonista code on the desktop

      thanks. works after pip docutils

      posted in Pythonista
      Olaf
      Olaf
    • RE: Typed Python interface stubs for editing Pythonista code on the desktop

      Okay, I'll try my luck at some parts of scene

      Well, no luck :-(
      pygenstub will not install (pip install) at my iPad with File Not Found Error.
      pip successfully downloads the .whl from pythonhosted.org, but on installing the wheel stops at an error
      Version 1.2 (current version is 1.4) installs

      posted in Pythonista
      Olaf
      Olaf
    • RE: Typed Python interface stubs for editing Pythonista code on the desktop

      Very welcome initiative!

      I may contribute a module or two that I'm comfortable with.
      In the style guide, you state "no Union[] return annotations"; does that also imply "no Optional[] return annotations"? The Pythonista modules have some.

      posted in Pythonista
      Olaf
      Olaf
    • RE: Feature request - machine learning

      nice :-)

      posted in Pythonista
      Olaf
      Olaf
    • RE: Pythonista is now featured on Python.org

      Congrats @omz!

      posted in Pythonista
      Olaf
      Olaf
    • RE: Beta expires in 3 days

      Thanks! Downloading now

      posted in Pythonista
      Olaf
      Olaf