• khilnani

    It would be great if @omz could add pandas, Sicily/sklearn and nltk ... not having them is pretty much the reason I have gone back to ssh’ing to a remote server and also using Juno.sh

    posted in Pythonista read more
  • khilnani

    @JonB said:

    yes, removing files is probably not handled well... how does git handle rm without git rm?

    from what ive seen, it treats them as if git rm was called and auto stages the removes

    i actually recommend against git pull in most cases, it will happily onliterate any local changes. i tend to use git fetch followed by git merge, which at least tries to do sane things (though is not exactly like the real git merge). iirc git reset can be helpful when files get deleted without git rm.

    git fetch OR git fetch origin OR even fit fetch git@gihub... gives an error -

    stash: <type 'exceptions.Exception'>: url must match a remote name, or must start with http:// or https://
    

    i tried git reset after manually deleting a file. didnt seem to help. Still get

    stash: <type 'exceptions.OSError'>: [Errno 2] No such file or directory: '/private/var/mobile/Containers/Shared/AppGroup/A90BB332.......ACD7F/Pythonista3/Documents/pythonista-scripts/test'
    

    I am in the process of removing gittle dependencies, and will then be able to use the most recent dulwich. Some improvements have already been made to dulwich.porcelain, and this would let us make pull requests to dulwich...

    cool !!!!

    Thanks so much for helping out!!!

    posted in Pythonista read more
  • khilnani

    @JonB ssh keys worked after setting up in pythonista and github. Thanks!

    Am still working through a few scenarios:
    1 - moving files. Noticed there is no git mv command.
    2 - adding directories with sub directories. Seems like need to add complete relative path of the files in each directory (* works) while in the main dir with .git
    3 - files deleted without git rm. eg. deleting from pythonista GUI. git status, git pull etc. all fail with a IO exception
    4 - Files deleted remotely - after a git pull, any file deleted remotely is auto staged to be added instead of being removed locally

    posted in Pythonista read more
  • khilnani

    @JonB said:

    also, i should add that ssh might be better for private repos in general. you iust have to set up the keys and then it just works.

    Hmmm.. For some reason i didnt try ssh when i use that everywhere else. I guess, i assumed it wouldnt work since Pythonista is an 'app'.

    I did try your other suggestion and that didnt work. Seems like on ssh keys work with git@ urls and not https at all.

    Might send a PR to https://github.com/jsbain/stash_git_tutorial/blob/master/stash_git_tutorial.md ... Noticed it mentions ssh in an upcoming update :)

    Thanks for helping!!! @JonB

    posted in Pythonista read more
  • khilnani

    @ccc said:

    Have you tried Working Copy? https://workingcopyapp.com

    I already have that but wanted to find something inside pythonista since i have projects with many files to open in app back and forth :(

    Good suggestion tho.

    posted in Pythonista read more
  • khilnani

    I get the same issue with github.com private repos. I cloned a private repo, pull changes, edited a file locally, comit and tried to push. The push fails with 401.

    Its able to clone and pull from a private repo, but cant push.

    Is anyone able to use stash git with private repos? Wondering if its only a few of us having issues.

    posted in Pythonista read more
  • khilnani

    Its an interesting thought. Mostly because Ole mentioned he positions pythonista value as not just running scripts, but creating games and UI. From that perspective, would be good to be able to run the UI/games on OS X.

    From a pure running scripts perspective, I agree - we shouldnt need a new python environmnent since it doesnt align with cross platform compatability. I make most of scripts pythonista and regular linux env compatable by checking if imports exist.

    That said, i do understand. Even while we have aws s3 sync cli on mac, i wrote https://github.com/khilnani/s3sync.py for pythonista that works on desktop in the same way to share files between ios and desktop

    In short, because of the UI apps you can build with Pythonista, would be nice to ruin the same UI apps on OX X

    posted in General Discussion read more
  • khilnani

    Its clear Pandas, Scipy and other data modules are not available in Pythonista. But, Numpy, Matplotlib and other python only modules are available. So are feedparser and beautiful soup for web scaping. I've parts of nltk to work as well.

    I use the Anaconda stack with pandas, numpy, scipy, keras, tensorflow, nltk etc etc. on desktop with Jupyter as my playground. But, havent tried much in Pythonista since am not sure if i will miss the modules not available in Pythonista too much, or perhaps thats just me.

    Curious how many people do data analysis in pythonista, which modules they use, their workflow and examples of what kind of analysis they do. Thanks in advance!

    posted in Pythonista read more
  • khilnani

    ICloud (since it's assume.ed to be supported y default ), but personally I use Google drive and Amazon s3 (need to see if my pythonista s3backup script works in editorial)

    posted in Editorial read more
  • khilnani

    i could patch it but its a dependency of celery, so might become a bit wieldy soon.

    i was wondering if anyone (or @omz ) knew why it might be failing and its something missing on iOS thats availablenon desktop

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!