# Finding function definition in package

**URL:** <https://discourse.julialang.org/t/finding-function-definition-in-package/119243>\
**Category:** General Usage\
**Created:** [September 10, 2024, 9:39am UTC](https://discourse.julialang.org/t/finding-function-definition-in-package/119243 "2024-09-10T09:39:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![el\_desesperado](https://avatars.discourse-cdn.com/v4/letter/e/9fc348/32.png) [@el\_desesperado](https://discourse.julialang.org/u/el_desesperado)\
**Post date:** [September 10, 2024, 9:39am UTC](https://discourse.julialang.org/t/finding-function-definition-in-package/119243/1 "2024-09-10T09:39:26Z")

</div>

I am trying to understand how a particular package is working and I don’t know how to find the definitions of some functions. I can Ctrl click some functions to go to the definitions but others I don’t know how to reach, usually functions used within defined functions in packages.

For example how can I reach the definitions of the functions handle\_complex() or  
make\_pdesys\_compatible() from the function excerpt shown?

```julia
function SciMLBase.symbolic_discretize(pdesys::PDESystem, discretization::AbstractDiscretization)
    t = get_time(discretization)
    pdesys, complexmap = handle_complex(pdesys)
    cardinalize_eqs!(pdesys)
    pdesys, replaced_vars = make_pdesys_compatible(pdesys)

```

---

<div class="post-metadata">

**Author:** ![LeePhillips](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leephillips/32/205514_2.png) [@LeePhillips](https://discourse.julialang.org/u/LeePhillips)\
**Post date:** [September 10, 2024, 7:01pm UTC](https://discourse.julialang.org/t/finding-function-definition-in-package/119243/2 "2024-09-10T19:01:15Z")

</div>

You can use a macro: `@edit func(a, b)` with the argument types of interest, to see the source of the method for that signature. For your problem with the functions called by other functions, you’ll have to first import the packages where they’re defined.

---

<div class="post-metadata">

**Author:** ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Post date:** [September 10, 2024, 7:28pm UTC](https://discourse.julialang.org/t/finding-function-definition-in-package/119243/3 "2024-09-10T19:28:19Z")

</div>

For relatively unique names like this one, a JuliaHub search is quick and easy:

[![image](https://global.discourse-cdn.com/julialang/original/3X/d/6/d68f31677f82706af47062b4fe8902129ebf6cc9.png)](https://juliahub.com/ui/Search?type=symbols&q=make_pdesys_compatible&u=define)
