Hooking Matlab Online to a local Python installation?
7 ビュー (過去 30 日間)
古いコメントを表示
Ravi Narasimhan
2021 年 8 月 31 日
コメント済み: Ravi Narasimhan
2021 年 8 月 31 日
I have a Matlab Home license and access to Matlab Online. Is it possible to connect Matlab Online to a local Python installation?
I have tried setting pyenv('Version', 'local executable location') on several machines but get an error message.
Running pyenv by itself results in:
pyenv
ans =
PythonEnvironment with properties:
Version: "2.7"
Executable: "/usr/bin/python"
Library: "libpython2.7.so.1.0"
Home: "/usr"
Status: NotLoaded
ExecutionMode: InProcess
0 件のコメント
採用された回答
Walter Roberson
2021 年 8 月 31 日
You appear to be asking for python scripts executed started from MATLAB Online to execute in your local MATLAB Home instead .
In order to do that, on the MATLAB Online side, you would have to replace the py package with a package that intercepted the request and formed a TCP connection back to your MATLAB Home instance to request that the action be taken, and then the MATLAB Home session would have to report the result back to MATLAB Online.
That might perhaps be possible, but it would be a nuisance to set up. You could perhaps take advantage of PyRO or Parallel Python, but it would not be trivial . https://stackoverflow.com/questions/536370/execute-arbitrary-python-code-remotely-can-it-be-done
You cannot just configure the pyenv on MATLAB Online to tell it to execute on a remote system.
その他の回答 (1 件)
Yongjian Feng
2021 年 8 月 31 日
Can you upload your python scripts to the online matlab server?
2 件のコメント
Walter Roberson
2021 年 8 月 31 日
The python scripts would then not have access to the local filesystem or local devices, or to running programs that are installed on the MATLAB Home system but not on the MATLAB Online system (and which potentially cannot be installed because MATLAB Online runs Linux.)
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!