How to activate local environment in shell?


I’m a new Julia user coming from Python. In Python, you can activate the environment in the shell and then python3 to run the script. What is the equivalent way of doing this in Julia? Thanks!

1 Like

You have the --project flag, but it will not run anything by itself. You could do

julia --project=/path/to/MyProject -e 'using MyProject; run_whatever()'

or similar.