2003e086a7
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com> |
||
---|---|---|
.. | ||
README.md |
Running Python remotely from Matlab
{:.no_toc}
* TOC {:toc}The goal
We want to integrate Python files and code into our Matlab workflow.
Questions to David Rotermund
Check if you are ready
Versions of Python Compatible with MATLAB Products by Release
You need to ask yourself or better Matlab if it is using the correct Python. You can check this via:
>> pyenv
ans =
PythonEnvironment with properties:
Version: "3.11"
Executable: "/data_1/davrot/P3.11/bin/python3"
Library: "libpython3.11.so.1.0"
Home: "/data_1/davrot/P3.11"
Status: NotLoaded
ExecutionMode: InProcess
If this is wrong (which it isn't in my case) then you can change it (temporarily?) with
>> pyenv('Version','/data_1/davrot/P3.11/bin/python3')
ans =
PythonEnvironment with properties:
Version: "3.11"
Executable: "/data_1/davrot/P3.11/bin/python3"
Library: "libpython3.11.so.1.0"
Home: "/data_1/davrot/P3.11"
Status: NotLoaded
ExecutionMode: InProcess
Obviously you need to use your location for your Python installation.