Is there a built-in command in Julia Pkg to switch the selected environment?

Viewed 298

The Julia Pkg documentation tells how to initiate an environment ($ activate $ENV-NAME), but it probably lacks the handy command to switch to the already created special environment. Also, I'm having trouble finding a command that shows all already created environments on the list, hence, if I have forgotten the names of the environments previously created, I need to do a manual search through the Julia-related folders...

So far, the verbatim help command in Julia REPL provides a poor description and so does the related Pkg-documentation webpage.

Another possible general answer to this predicament is to start using the Playground.jl module, which was recommended here on Medium:

However, the direct download attempt with Pkg repeatedly fails since the Pkg isn't able to find the package in the suggested GH project.

Thanks beforehand for any recommendations.

2 Answers

In package manager prompt just type activate @ and press tab-key. The REPLs autocomplete will show you the possible environments.

If you are on a Mac or Linux you can run this shell command to find all the "enviroment"

bash-3.2$ pwd
/Users/ssiew/juliascript

bash-3.2$ find . -name Project.toml
./Luxordir/Project.toml
./symata/Project.toml
Related