Message Boards Message Boards

GROUPS:

Embed wolfram function in python and get returned values in python?

Posted 6 months ago
772 Views
|
1 Reply
|
0 Total Likes
|

I want to embed a function in wolfram in python so that I can pass in parameters to wolfram function, which would do the manipulation and return the values back to python

let's say a simple function: gamma = Function [{x}, y = x*x ; y = y*4]

POSTED BY: Sag Mk
Answer
Posted 6 months ago

Use subprocess with wolframscript to evaluate the stuff and return it as JSON. Use the json module to import that JSON into standard python datastructures.

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

Group Abstract Group Abstract