What is in your startup.jl?

I always use project specific environments. If there does not yet exist one, I create one. If there already exists one, I activate and instantiate it.

using Pkg
working_directory = dirname(@__FILE__)
cd(working_directory)

if Base.active_project() != dirname(@__FILE__) * "/Project.toml"
    pkg"activate ."
    pkg"instantiate"
end
1 Like