Currently, changing an imported .py module will not update when re-running the script. This is obviously a desired function of the interpreter. However, I would like to be able to do the following on-command from the user of the application:
Lock/queue the creation of new interpreters. (No problem.)
Shut down all shared interpreters. (No problem.)
Do something that fully clears the state the shared interpreters receive, so that when they are run next time, any modules will be re-imported. (I am unsure how to do this part).
Currently, step 3 requires restarting the java application, which is very sub-optimal when modifying the python code during development, where the full java stack is required to be online to run the python scripts.
Describe the problem
Currently, changing an imported .py module will not update when re-running the script. This is obviously a desired function of the interpreter. However, I would like to be able to do the following on-command from the user of the application:
Currently, step 3 requires restarting the java application, which is very sub-optimal when modifying the python code during development, where the full java stack is required to be online to run the python scripts.