I'm looking for a way to identify which module a function was exported from in Julia.
You can use <function name>.env.module
to retrieve the name of the module which it comes from.
Ex.
julia> sum.env.module
Base
The <function name>.env.module
approach in the accepted answer no longer works in Julia 1.x. Instead, you can use the
@which
macro:
julia> using DataFrames
julia> @which sum
Base
julia> @which enumerate
Base.Iterators
julia> @which deleterows!
DataFrames
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With