• JonB

    That's always a possibility that a new iOS version breaks pythonista. Quite a number of iOS features have been deprecated for a while, and may eventually stop working altogether once apple removes the objects or methods from the Framework.

    If you are talking about making your own apps with the template, the first issue is most likely app store rejection -- I believe currently it is necessary to edit the pythonista template with a hex editor to remove references to UIWebView, though. Likely there could be similar reasons for rejection that won't be as easy to work around.

    For the pythonista app itself, I suspect that first things like ui.WebView will start resulting in crash (maybe they already do) -- but we can monkey patch to use @mikael"s wkwebview wrappers. I forget if the help doc viewer is based on UIWebView or WKWebview-- so maybe that would break. Certainly, as some of the modules that wrap iOS functions -- like location, cb, etc, might stop working if there are major iOS changes, but could be replaced with objc_util equivalent versions.

    In the past, when some new iOS completely broke pythonista, omz stepped in with a version update (IIRC the last version fixed some ios13 issues), even if no new features are added -- I think pythonista still sells a decent amount, and if it failed to work at all, it would be removed from the app store.

    posted in Pythonista read more
  • JonB

    Yeah, working copy is probably the best solution. (There are some threads on the best way to get pythonista and working copy to work well together). stash also has some very limited support for git (it might not be working right now -- I need to bite the bullet and do a major stash got update).

    posted in Pythonista read more
  • JonB

    There are a number of websites tutorials that can be run in split screen, or where you using a WebView, and then use the split screen within pythonista.

    posted in Pythonista read more
  • JonB

    Just curious, but in what ways do you feel limited by iOS 10.3?

    posted in Pythonista read more
  • JonB

    Check out the scene module Game Tutorials, which might give you some ideas for a game.

    posted in Pythonista read more
  • JonB

    You can install it, sure. You can't run npm in pythonista. But you can run local file:// urls inside a WebView that load local J's libraries, sure.

    I guess the question is why would you want to. HTML and JavaScript development in pythonista is possible -- there is some minimal syntax highlighting -- but there is no code completion, no easy "run" button, and in general it is very unpleasant.

    posted in Pythonista read more
  • JonB

    Push notifications in iOS require the app author to register with the apple push notification service. So unfortunately, you cannot currently use push notifications with pythonista.

    posted in Pythonista read more
  • JonB

    Ok.

    Seriously consider reading about thecmd module. It makes adding commands much easier.

    To run external scripts, like pip.py, the runpy module let's you "run" a file. stash's pip as I recall makes use of some modified other modules (setuptools I think), so probably won't work out of the box.

    posted in Pythonista read more
  • JonB

    @MustaphaBen I think you are going to have a hard time making something "better" than stash. If you have improvements, submit a pull request.

    Lots of thought went into stash's threading and user interface. You are not going to reproduce tab completion, history, etc using input. Various folks worked around various pythonista limitations to get a working pip. Etc.

    If you are interested in this just as an exercise, that's cool. However, writing command line utilities should be done using the cmd module -- otherwise your code will quickly deteriorate into a giant morass of if/elif statements that will be impossible to read and harder to debug.

    posted in Pythonista read more
  • JonB

    @DavinE

    csvFile__ProjectID = 83498246
    for i in range(20):
        print(f"{csvFile__ProjectID}r{i:02}.csv")
    

    So you don't hate yourself later, when you have wwritten folders and folders of files that won't sort properly.

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!