How to use function in REPL without module name

I am working in VSCode and I want to run functions from the module I’ve been developing in the REPL without writing module name. So, I want this transformation:
julia> MyModule.my_function()julia> my_function()
I tried importing module in REPL and also using MyModule in REPL, but it doesn’t work.

You can either do

using MyModule: my_function

or export my_function from your module.

1 Like

Thanks a lot!

Do keep in mind that exported names are usually considered public API under semantic versioning (the standard used in the julia ecosystem), if you’re developing a package.