How to import custom module from file without include

You cannot avoid using include here. See the manual for more information on how Julia projects/packages are typically organized:

https://docs.julialang.org/en/v1/manual/modules/

Note that some people in the community (including myself) are considering this an unsatisfactory state of affairs and this has been the topic of many passionate discussions:

1 Like