Hi @Phuket2 , thanks for your response! I ended up taking the plunge and downloading Pythonista. It seems like a pretty great app, but I'm definitely struggling with getting my script to open a file in Dropbox. I'm hoping maybe you or someone else reading this could give me a nudge in the right direction.
I can successfully import/open my processing script, called process.py, and I can run it. It makes it up to my first "f = np.loadtxt("./mydata.dat")" line and stops, saying it can't find that file. Fair enough - even though the script and files are in the same folder, I haven't imported the data files in to Pythonista yet.
So, I go back to the "external files" section of the browser and hit "open". I go to my dropbox and navigate to my folder (same folder as my script is in). All of my ".dat" files are greyed out and unselectable, and the blue cloud icon is next to them, also dimmed out and non-functional. Alright, those cloud icons make me think maybe I need to go in to the Dropbox app and tell it to make the files available offline, so I do, but nothing changes (I've tried closing/reopening both Pythonista and Dropbox, and restarting the iPad in case it was an issue of data not updating across apps). I've tried importing a whole folder with no success either. I just get an error saying the folder couldn't be imported.
I do some googling which suggests I need to use the "import" option under new files to make non-python files available, but I run in to the same not-selectable, greyed-out-with-cloud-icon.
Edit: I realized I can also use the files app to download the files, which I've done. This removes the blue cloud icon, but the files are still unselectable within Pythonista.
Edit 2: Renaming the file from "mydata.dat" to "mydata.txt" lets Pythonista import the file, so it seems like this is some kind of file extension issue. It's a bit cumbersome (and in some cases not an option) to have to rename files. Is there a way around this/is this intended behavior?
Additionally, importing the files from dropbox does not allow the np.loadtxt("./mydata.txt") to be found - I have to actually copy the files in to pythonista for this to work. Is there information on the proper path formatting to find a file in Dropbox?
Am I doing something silly here? Is this a dropbox limitation and would be resolved if I used iCloud? (Edit: Issue remains when using iCloud) Any help would be appreciated!