Update Python module in Matlab

9 次查看(过去 30 天)
Evan
Evan 2015-8-13
回答: Evan 2015-8-14
I'm trying to run a Python script using Matlab's built-in py. It's pretty simple, but I'm running into some difficulty drying to debug an error in my code (which runs fine testing in my Python IDE but crashes when run through Matlab).
The issue is that Matlab seems to be caching the module the first time I call a function, and I can't figure out how to get it to recognize changes to the module without restarting Matlab. Is anyone aware of a way to avoid this issue?

采纳的回答

Evan
Evan 2015-8-14
Editing and reloading a Python® module in the same MATLAB session. To use an updated module, restart MATLAB.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Call Python from MATLAB 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by