matlab_kernel
matlab_kernel copied to clipboard
modified script reload
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?
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?
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.