I made a code interpreter iOS shortcut that writes & runs code with Pythonista on the iPhone.
The dream is to be able to get complicated financial analysis work done from your headphones, and I think we're close.
I currently have this script and a few roadblocks I was wondering if you could all help, I'm sure my approach is insane, I'm not a developer I'm just sort of guessing what to do based on what GPT-4 tells me.
So the goal is to be able to have Pythonista run any code against any set of local files & return image files or text output, or revised versions of those files.
Right now I have running misc code (after user confirmation) & outputting text or images, but the environment doesn't seem to clean up after itself and once you make one image you can't make another, it just shows the old one.
I also have no clue how to build file integration, has anyone done this well with shortcuts so I could work from their example?
Here's the RunFromText.py script I have right now and here is my code interpreter shortcut.