Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
DATA iOS Shortcut Code Interpreter Questions
-
Hi everyone,
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.
https://twitter.com/SteveMoraco/status/1704589803646566695
https://www.icloud.com/shortcuts/6ea5bbe9f1234b4781b140169d864507