zinela.blogg.se

How to use wolfram mathematica kernel
How to use wolfram mathematica kernel











how to use wolfram mathematica kernel

Raise SocketAborted("Socket operation aborted.") Response = self.kernel_socket_in.recv_abortable(įile "/home/me/anaconda3/envs/wolfram_env/lib/python3.8/site-packages/wolframclient/evaluation/kernel/zmqsocket.py", line 50, in recv_abortable When running run_notebook() from script_2.py I get the following error: Socket exception: Socket operation aborted.įile "/home/me/anaconda3/envs/wolfram_env/lib/python3.8/site-packages/wolframclient/evaluation/kernel/kernelcontroller.py", line 435, in _kernel_start However, I want to run this same run_notebook() function from script_2.py because my actual run_notebook() function has an import so I am feeding it other data. When calling this from script_1.py I have no problems and everything works as expected.

how to use wolfram mathematica kernel

Session = WolframLanguageSession('/usr/local/Wolfram/Mathematica/12.1/Executables/WolframKernel') For illustration purposes, my function has this structure: from wolframclient.evaluation import WolframLanguageSessionįrom wolframclient.language import wlexpr I have an Anaconda environment wolfram_env where I installed the WCL and automated the Mathematica notebook by creating a function that I call many times, let’s say from script_1.py.

how to use wolfram mathematica kernel

I have recently started using the Wolfram Client Library (WCL) for Python in my Linux machine in order to automate running a Mathematica notebook many times.













How to use wolfram mathematica kernel