• dgelessus

    FWIW, one of the Pythonista 1.6/2.0 betas had basic Apple Watch support, but it wasn't kept for the final release. That was a while ago though, I think there have been some changes to the Apple Watch frameworks as well, so perhaps a watch API with more features would be possible. (No idea how the resource limitations are on the Apple Watch, and how that might affect using Python on the watch...)

    posted in Pythonista read more
  • dgelessus

    @shaun-h Just an idea - did you create any symbolic links (using os.symlink)? Pythonista doesn't treat symlinks specially, so if you symlink a folder, it shows the folder contents for the original and each symlink. If you have a circular symlink (that points to one of its parent folders) Pythonista will recurse forever and then crash.

    posted in Pythonista read more
  • dgelessus

    I have this too, though not as badly as @shaun-h described. I have the Python 3.5 source code and the iOS 9 headers lying around in Pythonista, and on my iPad mini the tree takes about 9 seconds to load. As with many things on my ancient device, I've just gotten used to the long loading times...

    posted in Pythonista read more
  • dgelessus

    The buttons that appear on the navigation view toolbar (the one with the back button) come from the view that's currently visible in the navigation view. That means you need to set the left_button_items of v, not nav. When you push/pop views on nav, the toolbar buttons change to those of the new top view.

    posted in Pythonista read more
  • dgelessus

    If you really want to, you can use os.abort() to crash the app on purpose. Be aware that this is still a crash and not a clean exit, so some things might not be saved, for example modified files in the editor, or files opened in Python.

    posted in Pythonista read more
  • dgelessus

    As you can see, Pandas/SciPy are requested very often. :)

    posted in Pythonista read more
  • dgelessus

    No and no, unfortunately. Pandas and SciPy are requested very often, but especially SciPy is not that easy to port, and it's not a very high priority for @omz right now. There's also no way to install the libraries yourself. Due to iOS sandboxing and code signing requirements, apps can only load native libraries that are included with iOS or the app. This means it's impossible to install Python libraries that require native code, such as Pandas or SciPy.

    posted in Pythonista read more
  • dgelessus

    Most Python machine learning libraries are written in native code (C, C++, Assembly, Fortran, etc.), so you cannot install them in Pythonista (because of iOS restrictions). npdl is a bit different, it uses only pure Python and numpy, so it should be usable in Pythonista.

    If your code hangs on the model.fit call, maybe it just takes a while to run? Depending on what your device is, your code will run much slower than on a normal computer, especially for code that requires a lot of computation. Try letting it run for a few minutes and see if anything happens. (If your device gets warm, you can tell that it's still doing something. :))

    Note: I know nothing about machine learning, so I can't help very much, sorry.

    posted in Pythonista read more
  • dgelessus

    Hi, welcome!

    Someone else had a similar problem with Greek letters: https://forum.omz-software.com/topic/2594/matplotlib-unicode-greek-letters. Maybe the solutions there work for Russian text too.

    posted in Pythonista read more
  • dgelessus

    I'm not familiar with Drafts - is the [[Draft]] part a placeholder? If so, what is it replaced with? Does the replacement text contain any special characters that could cause problems in a URL? If so, you might need to URL-escape the text so it can be passed through the URL, or use an alternative way of passing the text (for example the clipboard). I don't know if and how that could be done in Drafts, I don't have the app - I'm just thinking of things that could cause problems in this case.

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!