Why can I import a package not in my environment?

Yes, the default environment is accessible from every other environment, see this thread for more details:

The best practice is therefore to have basically nothing in the default environment, except pure development tools (Revise.jl, Cthulhu.jl, JET.jl, BenchmarkTools.jl, etc.)

3 Likes