How to separate module environment from package environment


Is there a way to nicely and easily separate a development environment from the actual package one?

Say I’m working on a small module and to test it I want to use it either in REPL or a scrip and I want to use Revise.jl to not have to restart the session all the time.

If I add it via ] add Revise it will end up in the packages Project.toml file which I don’t really want since the package itself doesn’t need that as a dependency.

1 Like

An easy approach is to create a shared environment that is different from your default v1.9, for instance pkg> activate @playground, and then pkg> dev your package into it.

1 Like