Unloading/detaching a function from module #290
-
Hello, I have started using box and it is so far a fantastic tool! I am coding my first module but I am running into so troubles. I can unload a module if I loaded the module environment (thus all the functions contained inside my script):
However, if I loaded a specific function, there is no way to remove it as it does not appear in the Global environment, and also no way to update the code of the loaded function by reruning the code:
Is there a way to detach or at least update "this_function"? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I found the reload function and wrote a little helper function using "search()" and "detach()" to find and detach the exported functions. |
Beta Was this translation helpful? Give feedback.
-
Hi Pierre, I am currently working on an auto-reloading feature which will hopefully make this a lot less effort. Until then, there’s the function |
Beta Was this translation helpful? Give feedback.
I found the reload function and wrote a little helper function using "search()" and "detach()" to find and detach the exported functions.