Change "current working module" from REPL

cscherrer
Mon, 11 Jan 2021 16:32:35 +0000
General Usage

In package development, I often find myself needing to bring lots of things into scope, so I can run bits and pieces as if my package were running them. Something like

julia> using Foo # or some package I'm developing
julia> using Foo: f, g, h, j
julia> using Bar # a dependency of `Foo`

etc.

It’s a lot of typing, and it’s very error prone. It would be a lot easier if we had a way to change modules from the REPL. Is this possible? Or maybe there’s an easy way to automate what I’m currently doing?

7 posts - 5 participants