How to activate local environment in shell?

Hi,

I’m a new Julia user coming from Python. In Python, you can activate the environment in the shell and then python3 main.py 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.

2 Likes