There’s now a built in way to do this - type the module name in the REPL and press ALT-m
. Or use the REPL.activate()
function.
Implemented in REPL: allow switching contextual module by rfourquet · Pull Request #33872 · JuliaLang/julia · GitHub. Just leaving a note here so that people finding this old discussion via google can find the modern solution.