Julia environments with multiple workers



How is the instantiation of an environment handled in multiple-worker settings? Should I run

using Distributed
@everywhere begin
	using Pkg

? I do seem to get some warning messages about access to caches during pre-compilation and such. Should then the activation of the environment be performed only on the process 1?


Bump. Any parallel-computing experts still up?


The best discussion I am aware of is Packages and workers, which links to this issue: https://github.com/JuliaLang/julia/issues/28781. As far as I am aware, Pkg/code-loading does not provide any mechanisms to further streamline the process.


Great find, thanks a million!