• ForceBru

    @aerokuzbass, this is how I managed to output Cyrillic characters in Matplotlib:

    import sys
    import matplotlib.font_manager as fm
    
    if sys.platform.lower() == 'ios':
        fp = fm.FontProperties(fname = "/System/Library/Fonts/CoreAddition/Arial.ttf")
    elif sys.platform.lower() == 'darwin':  # for macOS
        fp = fm.FontProperties(fname = '/Library/Fonts/Verdana.ttf')
    else:
        raise ValueError('Platform not supported:', sys.platform)
    

    Then you do something like matplotlib.pyplot.title("Привет, мир!", fontproperties=fp). So, basically, you only need to choose a font to use to display the characters.

    posted in Pythonista read more
  • ForceBru

    Congratulations, @omz! Pythonista is the best app for Python programming on iOS! I use it every day (yep, I'm a Python fan; also, a Pythonista fan, definitely) and I like everything about it. I mean, with Pythonista I can do everything I can do on my computer. Pythonista runs very smoothly and allows the use of all Python features (...except multiprocessing and subprocesses, but this is understandable), which is perfect!

    BTW, it would also be super awesome if you could create a C or C++ IDE just like Pythonista :D At the moment, there are no apps in the AppStore that provide stable offline compilation of C or C++ code.

    posted in Pythonista read more
  • ForceBru

    @omz, anyway, I've filled in the form, so now you have one more Pythonista fan ready for beta testing! Keep up the good work!

    posted in Pythonista read more
  • ForceBru

    @dgelessus, where did you get the link to this Google Form? Has it been posted on the Pythonista's site or in Twitter or via Slack? Is there any official source? Please provide the link from where you copied this.

    posted in Pythonista read more
  • ForceBru

    @JonB, didn't know about the c variable, this is exactly what I was looking for, thank you!

    posted in Pythonista read more
  • ForceBru

    @dgelessus, woah, I bet Python 3.6 support is gonna be super cool! Is there any way to get the beta? Maybe through TestFlight? If so, do you know how to sign in for testing? The Apple Help discusses this from the developer's point of view and says that a tester must somehow provide their e-mail address to the developer, but how to actually do this isn't clear.

    Yeah, I didn't think about trying to hard-code the path. This is actually what I use on a jailbroken device :P

    posted in Pythonista read more
  • ForceBru

    I've been an (almost) everyday user of Pythonista, as it's really cool to have a Python IDE right at my fingertips, no need for a computer, yay! And I have to say it's absolutely amazing! (BTW, I'm waiting impatiently for updates, are there any planned?) I mean, a full Python interpreter on iOS is a marvel already, but this is a fully featured IDE, just blew my mind when I first installed it a few years ago.

    Now, I've got a question about the ctypes module. How is it useful in Pythonista? As far as I understand, one of its primary goals is to allow people to run C functions from Python, but it's absolutely impossible on iOS (or is it?) because there's no way to sign that C code... I even can't load libc, simply because it's not here, and ctypes.util.find_library doesn't find anything. However, I have to say that it works perfectly on jailbroken devices where libc is installed, but for non-jailbroken ones, ctypes is almost useless.

    Or am I missing the point? Is it possible to call standard C functions through ctypes in Pythonista? What do I use ctypes for, if not for calling C functions? According to the docs, I can use C types and work with memory, but it's not that useful... or is it?

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!