ExternalEvaluate, is it possible to call back to the same Mathematica kernel?
For the sake of example, suppose I have a Python function
nint that does numerical integration. It takes another function as argument—the function to be integrated. Is there a way to use the Python function
ExternalFunction to integrate some function
f that was defined in Mathematica?
To be clear, this is just an example to help explain the problem. I am not actually looking to do numerical integration, and at this moment performance (which would be a big deal for practical numerical integration) is not of concern to me.