I'm building an Objective-C mac app. I'd like that app to be able to start and continuously communicate with the same running python process.
For example, the basic flow might be:
- App starts, I start a python process in the background
- The app imports some libraries and initializes some variables in the python process
- User does something, I run some python code on this python process using the initialized variables and use the result of the python expression in my mac app
What techniques can I use to accomplish this? Any guidance would be incredibly helpful.