matlab_kernel icon indicating copy to clipboard operation
matlab_kernel copied to clipboard

modified script reload

Open kb1ooo opened this issue 4 years ago • 2 comments

I don't know whether this is a general jupyter problem (this kernel is my first real exposure to jupyter), a problem with this kernel, or a problem with the distributed filesystem that I'm running on, but if I externally edit/update a script and run it from jupyter, jupyter runs the version before the update. I have to rerun the cell (or interrupt and rerun) for jupyter to run the updated version of the script. Is this a problem that others have seen?

kb1ooo avatar Mar 14 '20 02:03 kb1ooo

This seems to be a matlab or matlab engine problem. Similar to this behavior. Do others also experience this? I confirmed that if I add clear myscript before executing myscript that it reloads. However, it's not enough to clear just the top level script if you have also edited scripts that it calls. You have to also clear those scripts. Is there some nicer way to force this behavior?

kb1ooo avatar Mar 14 '20 12:03 kb1ooo

My best solution for this so far is to put "clear functions" at the top of cells that call scripts. If anyone has a better way, please let me know.

kb1ooo avatar Apr 07 '20 02:04 kb1ooo