With Julia, is there a way to create a test/temporary/throwaway environement?

Viewed 310

I would like to test the installation of a certain combination of packages without polluting my primary environment and without needing to create a folder. Is there a way to do this interactively/in the REPL?

2 Answers

For this specific purpose, there is also

(@v1.5) pkg> activate --temp
 Activating new environment at `/tmp/jl_r7woaE/Project.toml`

Yes, navigate to into a specific folder (this will be where the throw away env. files are) and then run activate . in the package manager.

Related