Autoload packages - an option?

I am looking at WaterLily examples. I try to run one of thr example files, and get a load error asking me to add StaticArrays and Plots
Julia file has:
using WaterLily,StaticArrays,Plots

I have already used Pkg to install WaterLily. It is frustrating to add more packages by hand just to get something running.

Could this be frustrating to newbies?

I see that BasicAutoloads.jl and Autoloads.jl exist.
However they look a faff to set up.

I use BasicAutoloads.jl and it’s pretty set and forget.
Add it to your default environment and load it and set it up in you startup.jl file.

It works quite well when paired with ShareAdd.jl with the @usingany macro. That way you don’t have to care in which environment you have your package to autoload.

The smooth general solution would be to use an environment in the same folder that has those installed and make sure it is instantiated.

Maybe a bit easier to access would be a Pluto notebook that takes care of that automatically.
I think you run this in REPL the REPL should even ask you whether you want to install them? See

❯ julia --project=temp
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.12.7 (2026-08-15)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org release
|__/                   |

julia> using WaterLily,StaticArrays,Plots # I hit enter here
 │ Package WaterLily not found, but a package named WaterLily is available from a registry.
 │ Install package?
 │   (temp) pkg> add WaterLily
 └ (y/n/o) [y]: y # [install follows]

I was surprised it even installed the others directly as well. But yeah REPL asks.

Did you clone GitHub - WaterLily-jl/WaterLily-Examples: WaterLily tutorial files · GitHub ?

If you start a REPL from that folder, and run julia --project=. it will activate the project for you, with all the needed dependencies.

Aha. I did not go down to the Water lily directory.
I ran Julia --project =. In a directory abovevWaterLily