Is there a way to 'unload' modules in Julia?


Currently, every time I change some code in a module I quit and restart Julia and recompile all the code. But as the code base grows this is going to take more and more time. It would be great of I could make Julia ‘forget’ a module so I can just recompile the module I made changes to.

Thanks in advance,

1 Like

Do you know of Revise.jl? The workflow of most people does not involve restarting the Julia session every time a change is made in the module you are working on, but just let Revise.jl to silently recompile the differences for you.


By the way I am interested about whether it is possible to unload. For me I would test some package load time/invalidation counter and it would be great to have that feature.