# Load Packages inside a function

**URL:** <https://discourse.julialang.org/t/load-packages-inside-a-function/28196>\
**Category:** General Usage\
**Tags:** question\
**Created:** [August 30, 2019, 6:10am UTC](https://discourse.julialang.org/t/load-packages-inside-a-function/28196 "2019-08-30T06:10:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ajaychat3](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)\
**Post date:** [August 30, 2019, 6:10am UTC](https://discourse.julialang.org/t/load-packages-inside-a-function/28196/1 "2019-08-30T06:10:28Z")

</div>

I tried to load a package inside a function and it did not work. Then I came across this post.

```julia
https://stackoverflow.com/questions/47141374/load-a-package-within-a-function

```

The post says that this can be done ’ @eval using package\_name’ but it may create issues. Just wanted to know what issue could arise due to this.
