Reload Out-of-Process Python Interpreter
7 views (last 30 days)
I would like to dynanically change the Python Interpreter used in MATLAB.
According to this help, termination and re-specificition should work for Out-of-Process Python Interpreter. However, I receive a follwoing error message:
"Python is terminated. The environment cannot be changed in this MATLAB session. To change the environment, restart MATLAB, and then call 'pyenv'."
Pranav Verma on 11 Jan 2021
Edited: Pranav Verma on 11 Jan 2021
From the problem you have specified, I assume that you have followed the below steps mentioned in the documentation for reloading the interpreter:
py.list; % Reload interpreter
You can try with newer version of Python and see if it resolves the issue.