how to run parallel job script called from python
Mostrar comentarios más antiguos
I tried to call a matlab script from python.
I cannot launch multiple processes for the parfor command.
It seems like the jvm was not launched since when I tried to call the following commands in the matlab script:
myPool = gcp('nocreate');
if isempty(myPool)
myPool = parpool(4);
end
I got the following error;
Undefined variable "com" or class "com.mathworks.toolbox.distcomp.pmode.SessionInfo.NULL_SESSION_INFO".
And I used this command in python to launch the matlab engine
matlabengine = matlab.engine.start_matlab()
Is there any solution for that?
Thank you for your help.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Call MATLAB from Python en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!