how to run parallel job script called from python
古いコメントを表示
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.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Call MATLAB from Python についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!