• jgoalby

    Can you open the Files app and find the large file? Then delete that file?

    posted in Pythonista read more
  • jgoalby

    I will suggest using version control through something like github. You can have private repositories so you can keep your code private.

    To that end, on iOS I would suggest the app called Working Copy. It’s reasonably simple to use and removes the need for arcane command line antics.

    In pythonista you can open external files and then navigate to your working copy entry I. The files app.

    On windows you can use github desktop as another ui based github client.

    Good luck!

    posted in Pythonista read more
  • jgoalby

    I decide to try mypy today. It seems that pip install mypy does now install mypy but ends up having problems accessing typed-ast package. It appears that typed-ast includes c code which does not run on Pythonista.

    Back when this thread started a year ago mypy didn’t appear to use typed-ast so that wasn’t an issue. I tried installing older versions of mypy but had other issues with them.

    Has anyone got mypy to work on Pythonista?

    posted in Pythonista read more
  • jgoalby

    I know what is causing the error but don’t know exactly why. In your funcs.py module, you have a vision_cut function. It doesn’t have a default return. It has elif that are not always going to be entered.

    So if no condition is met I presume python returns None for the tuple which then cannot be unpacked into the two values. This I am not 100% sure of but it seems logical.

    John.

    posted in Pythonista read more
  • jgoalby

    That’s an interesting question. I haven’t tried to do it. I did a little bit of research and came across the following that looks promising:

    https://jupyter-notebook.readthedocs.io/en/stable/examples/Notebook/Importing Notebooks.html

    “Importing Jupyter Notebooks as Modules

    It is a common problem that people want to import code from Jupyter Notebooks. This is made difficult by the fact that Notebooks are not plain Python files, and thus cannot be imported by the regular Python machinery.

    Fortunately, Python provides some fairly sophisticated hooks into the import machinery, so we can actually make Jupyter notebooks importable without much difficulty, and only using public APIs.”

    There might be other approaches that will work. I used the following search:

    copy jupyter code to python

    posted in Pythonista read more
  • jgoalby

    Check out Juno on iOS. Search for “Juno for jupyter” on the App Store.

    posted in Pythonista read more
  • jgoalby

    Have you looked in your purchase history in the App Store?

    posted in Pythonista read more
  • jgoalby

    I’m still trying to wrap my head around this!

    it seems like the header and footer labels can be added to the table view after it was created by the controller? And it looks like the controller is fed empty strings. Clever.

    Not a deal breaker for me but I tried making font bigger for the header. Say 80. And then set h_header larger as well. I fiddled with other values, but it seemed the existing rows in the table view did not move. Is that expected or something I am missing?

    Thanks again. This will be way easier than what I thought I was facing.

    posted in Pythonista read more
  • jgoalby

    I haven’t used numpy in Pythonista and I don’t have your code to work from so could be completely off the mark here, but if you do import numpy as np, wouldn’t the random_sample need to be referenced as np.random_sample?

    A quick test got this to work:

    import numpy as np
    
    print(np.random.random_sample())
    

    posted in Pythonista read more
  • jgoalby

    Another point of reference for you. I have iOS 11 on my iPad still and it runs fine at 60fps. Sometimes goes down to 58fps when I rotate. I’ll update my iPad to iOS 12 soon and can confirm the slowness most likely.

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!