# Defined variables within a scope

**URL:** https://discourse.julialang.org/t/defined-variables-within-a-scope/10721
**Category:** General Usage
**Created:** [May 5, 2018, 6:11am UTC](https://discourse.julialang.org/t/defined-variables-within-a-scope/10721 "2018-05-05T06:11:12Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Qiyamah](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/qiyamah/32/2660_2.png) [@Qiyamah](https://discourse.julialang.org/u/Qiyamah)
#### Post date: [May 5, 2018, 6:11am UTC](https://discourse.julialang.org/t/defined-variables-within-a-scope/10721/1 "2018-05-05T06:11:12Z")

</div>

Hi,  
I want to get the variables defined within the current scope. Is there a function that does it?

Thanks

---

<div class="post-metadata">

### Author: ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)
#### Post date: [May 5, 2018, 6:31am UTC](https://discourse.julialang.org/t/defined-variables-within-a-scope/10721/2 "2018-05-05T06:31:29Z")

</div>

I don’t think there is. There is `whos` but that works at module scope. Note that there are very many variables defined in most scopes as Base, etc. have a ton (run `whos(Base)`), unless you have a scope nested in a baremodule.
