Had a look round the discussion forums and can't find anyone else who has asked this…
I have a main Python script which I am running on the command line in Hypergraph to operate on curve data. The main script imports my own Python module which calculates curves as functions of other curves.
When I run the script for the first time, it runs correctly. However, when I make a change to the imported module, when re-running the script in the same session, the change is not recognised. I have to re-start my Hypergraph session (and load all my curve data again) before the change to the imported module is recognised.
Questions then:
-surely when re-running scripts, any Python modules should be re-imported so these changes are picked up?
-If not, is Hypergraph "caching" the imported module somehow?
-Is there a way to force the module to be re-imported to get the change to be picked up (e.g. clearing cache/kernel?)… i.e. as a workaround for now.
-If this is an issue, is there a plan to fix this in a future release? For someone developing code, this is a big impediment (if I've got it right!).
n.b. If I make a change to my main script (I added a few print statements to test this), these are picked up when re-running the script in the same session.
@Michal Stefuca -thoughts?
Thanks,
Kristian