Group Abstract Group Abstract

Message Boards Message Boards

Properly perform ExternalEvaluate to call Python?

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?

Attachments:
POSTED BY: Tsai Ming-Chou
4 Replies

POSTED BY: Arnoud Buzing

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", ... ]
POSTED BY: Arnoud Buzing

Thank God! Mathematica finally has a spatial statistics function! Thank you for providing such exciting information!

POSTED BY: Tsai Ming-Chou
Posted 3 years ago

Not an answer to your question, but V13 will add support for Kriging. WTC 2021 presentation.

POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard