Background:
I am calling a Python function using the standard syntax - ex: r = py.test.score(X,y).
The Issue:
I make changes to the Python code, save, and runfile which are immediately available in my Python ide (Spyder), but Matlab does run the latest version of the Python function. I have to restart Matlab - using the Anaconda prompt in the mne environment - each time I make a change to my Python code. Upon restart, the updated Python code is used by Matlab.
I update the current Python path prior to calling my Python function using:
if count(py.sys.path,'')==0
insert(py.sys.path,int32(0),'');
end
I have tested this with a basic "Hello World" type Python function and this is my experience.
I am not sure how to further troubleshoot this issue.
Is there something I may be doing incorrectly?
Thanks in advance,
Daniel
2 Comments
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/576565-matlab-requires-restart-before-changes-in-python-code-changes-are-applied#comment_964099
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/576565-matlab-requires-restart-before-changes-in-python-code-changes-are-applied#comment_964099
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/576565-matlab-requires-restart-before-changes-in-python-code-changes-are-applied#comment_964513
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/576565-matlab-requires-restart-before-changes-in-python-code-changes-are-applied#comment_964513
Sign in to comment.