• JonB

    There is a way to use pandas via sagecell -- essentially you run your code via cloud.

    See the entire thread here:
    https://forum.omz-software.com/topic/4200/data-analysis-workflow/18

    Pythonista comes with numpy and matplotlib, but not pandas or scipy. There are now apparently a few ios apps that do support pandas, but most of these have poor interfaces.

    posted in Pythonista read more
  • JonB

    No, it is not supported. You can only install pure python modules

    posted in Pythonista read more
  • JonB

    You could also set the imageview transform to ui.Transform.rotation(90), depending on what you are trying to do.

    posted in Pythonista read more
  • JonB

    I find it is helpful to use developer tools on your desktop (F12 on chrome or IE/edge, I suspect safari has something similar), then select the element, and check the XPath.

    Sometimes, sites may have elements populated via JavaScript, dynamically. In that case, you need to use a webview. @michael's wkwebview wrapper should let you do this easily.

    posted in Pythonista read more
  • JonB

    Looking at setup.py:

    install_requires =
        requests[security]
        numpy
        scipy
        matplotlib
        pandas
        pillow
        pyglet
        pyopengl
        soundfile
        sounddevice
        python-bidi
        arabic_reshaper
        cffi
        future
        json_tricks
        pyosf
        xlrd
        openpyxl
        pyserial
        pyyaml
        gevent
        msgpack-numpy
        msgpack-python
        psutil
        tables
        pyzmq
        moviepy
        opencv-python
        python-gitlab
        gitpython
        astunparse
        esprima
        freetype-py
        # Platform-specific dependencies.
        imageio < 2.5; python_version < "3"
        imageio >= 2.5; python_version >= "3"
        imageio-ffmpeg; python_version >= "3"
        pyparallel; platform_system == "Linux"
        pyWinhook; platform_system == "Windows"
        pyqmix >= 2018.12.13; platform_system == "Windows"
        pyqt5; python_version >= "3"
        wxPython != 4.0.2, != 4.0.3; platform_system != "Linux"
        pypiwin32; platform_system == "Windows"
        pyobjc-core; platform_system == "Darwin"
        pyobjc-framework-Quartz; 
    

    A good fraction of these are incompatible with pythonista. For instance scipy.

    posted in Pythonista read more
  • JonB

    @upwart so you are combining many PIL images into a single SpriteNode because thousands of spritenodes have a performance penalty?

    Are all of the subimages continuously changing? Are these mini plots of some sort, or status icons? In other words is there a lot of repeated content? (Can you post a screenshot?)

    There may be some low level ways to get from something like an io surface into a texture. Or, there may be ways to create your ui.Images or scene.Textures such that the PIL image can write directly into the buffer, which minimizes the amount of conversions needed.

    posted in Pythonista read more
  • JonB

    If you are trying to make reusable classes, you could consider using a delegate attribute, or menu items are defined with a title, target object and a method that gets called on the target. That way a menu can target the root, or target some low level component.

    posted in Pythonista read more
  • JonB

    How are you generating the image?

    See https://forum.omz-software.com/topic/5155/real-time-audio-buffer-synth-real-time-image-smudge-tool

    This has the fastest methods to update images although in a ui.View. you can get 60 fps or higher with a recent device.

    Not sure if this would work with scene.

    posted in Pythonista read more
  • JonB

    What device are you using? Are you using an external kb?

    Check the settings for second row, under the gear icon in the file menu, then keyboard.

    posted in Pythonista read more
  • JonB

    Search shadertoy for reaction diffusion, and see if there is one that does what you want. For the most part, I think the stuff you can find on shadertoy should work with minimal work in pythonista.

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!