-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
packagesPackage management and loadingPackage management and loadingparallelismParallel or distributed computationParallel or distributed computation
Description
(Moved over from JuliaLang/Pkg.jl#675)
If I have a project where I installed MyPackage and I can say
julia --project -e "using MyPackage"
the following does only work when I manually activate the environment:
using Distributed
using MyPackage # works
addprocs(3)
@everywhere
using Pkg; Pkg.activate(".") # required
using MyPackage
...
endI would suggest that workers inherit the environment that is active when they are added with addprocs. Should there be any calls to Pkg.activate after addprocs they have to be manually performed by the user on all workers.
JLTastet, mpastell, mbauman, carstenbauer, felipenoris and 21 morelayne-sadler
Metadata
Metadata
Assignees
Labels
packagesPackage management and loadingPackage management and loadingparallelismParallel or distributed computationParallel or distributed computation