Get python arrays into openframeworks

Hi all!

I’ve been having some problems creating an interface with python and openframeworks. I’m generating some tensors in pytorch (ofxlibtorch has been an even bigger problem on macos) and want to receive them in a callback executed in setup(). At the moment I’ve tried the ofxPython addon but it’s working neither with recent versions of oframeworks nor with python 3.9.

I can though integrate the interpreter through <Python/Python.h> (the framework) but not only I have some problems with paths but also with calling functions from a file.

Any help?