Skip to main content
Tweeted twitter.com/StackMma/status/1246407305933066241
deleted 42 characters in body
Source Link

This question is about calling a Mathematica Package (.m file) from Python employing the "Wolfram Client Library for Python" (https://github.com/WolframResearch/WolframClientForPython).

For concreteness, consider the following Mathematica Package:

BeginPackage["basicPackage`"]
AddTwo::usage = "AddTwo[a, b] returns a+b";
Begin["Private`"]
AddTwo[a_, b_] := a + b;
End[]
EndPackage[]

Aim: call AddTwo from Python using the Wolfram Client Library for Python. If this is not currently supported, either indicate that this is the case or add this feature to the library.

The documentation for the library is located at: https://reference.wolfram.com/language/WolframClientForPython/index.html.

A similar question, asked before the Wolfram Client Library for Python was released, is: How to run a Mathematica package (.m) from python?

This question is about calling a Mathematica Package (.m file) from Python employing the "Wolfram Client Library for Python" (https://github.com/WolframResearch/WolframClientForPython).

For concreteness, consider the following Mathematica Package:

BeginPackage["basicPackage`"]
AddTwo::usage = "AddTwo[a, b] returns a+b";
Begin["Private`"]
AddTwo[a_, b_] := a + b;
End[]
EndPackage[]

Aim: call AddTwo from Python using the Wolfram Client Library for Python. If this is not currently supported, either indicate that this is the case or add this feature to the library.

The documentation for the library is located at: https://reference.wolfram.com/language/WolframClientForPython/index.html.

A similar question, asked before the Wolfram Client Library for Python was released, is: How to run a Mathematica package (.m) from python?

This question is about calling a Mathematica Package (.m file) from Python employing the "Wolfram Client Library for Python" (https://github.com/WolframResearch/WolframClientForPython).

For concreteness, consider the following Mathematica Package:

BeginPackage["basicPackage`"]
AddTwo::usage = "AddTwo[a, b] returns a+b";
Begin["Private`"]
AddTwo[a_, b_] := a + b;
End[]
EndPackage[]

Aim: call AddTwo from Python using the Wolfram Client Library for Python. If this is not currently supported add this feature to the library.

The documentation for the library is located at: https://reference.wolfram.com/language/WolframClientForPython/index.html.

A similar question, asked before the Wolfram Client Library for Python was released, is: How to run a Mathematica package (.m) from python?

Source Link

How to run a Mathematica package (.m) from Python using the "Wolfram Client Library for Python"?

This question is about calling a Mathematica Package (.m file) from Python employing the "Wolfram Client Library for Python" (https://github.com/WolframResearch/WolframClientForPython).

For concreteness, consider the following Mathematica Package:

BeginPackage["basicPackage`"]
AddTwo::usage = "AddTwo[a, b] returns a+b";
Begin["Private`"]
AddTwo[a_, b_] := a + b;
End[]
EndPackage[]

Aim: call AddTwo from Python using the Wolfram Client Library for Python. If this is not currently supported, either indicate that this is the case or add this feature to the library.

The documentation for the library is located at: https://reference.wolfram.com/language/WolframClientForPython/index.html.

A similar question, asked before the Wolfram Client Library for Python was released, is: How to run a Mathematica package (.m) from python?