I try to execute ExternalEvaluate to call Python for spatial interpolation calculation.
But the error message keeps appearing.
Can someone please help point out where is wrong?
Not an answer to your question, but V13 will add support for Kriging. WTC 2021 presentation.
Thank God!
Mathematica finally has a spatial statistics function!
Thank you for providing such exciting information!
I think they key problem here was that one of your functions did not use the Python session you created and thus evaluated into its own temporary session. If you use a session:
session = StartExternalSession[...]
Then all ExternalEvaluate calls should use that session:
ExternalEvaluate[session, ... ]
But some of your code used the following, which is evaluated as a one-shot evaluation:
ExternalEvaluate["Python", ... ]