# @code\_warntype not found

**URL:** https://discourse.julialang.org/t/code-warntype-not-found/95392
**Category:** General Usage
**Created:** [March 1, 2023, 3:18pm UTC](https://discourse.julialang.org/t/code-warntype-not-found/95392 "2023-03-01T15:18:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![erlebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/erlebach/32/12973_2.png) [@erlebach](https://discourse.julialang.org/u/erlebach)
#### Post date: [March 1, 2023, 3:18pm UTC](https://discourse.julialang.org/t/code-warntype-not-found/95392/1 "2023-03-01T15:18:18Z")

</div>

When I use `@code_warntype` from the command line, it is found.  
However, when I insert it into my script and run the script from the commandline via

```julia
julia script.jl

```

then, `@code_warntype` is not found. What am I missing? Thanks!

---

<div class="post-metadata">

### Author: ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)
#### Post date: [March 1, 2023, 3:21pm UTC](https://discourse.julialang.org/t/code-warntype-not-found/95392/2 "2023-03-01T15:21:40Z")

</div>

Using InteractiveUtils

---

<div class="post-metadata">

### Author: ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)
#### Post date: [March 1, 2023, 4:07pm UTC](https://discourse.julialang.org/t/code-warntype-not-found/95392/3 "2023-03-01T16:07:03Z")

</div>

> [@erlebach](#):
>
> What am I missing?

To slightly elaborate on the above, correct, answer, the `@code_*` macros come from the [`InteractiveUtils`](https://docs.julialang.org/en/v1/stdlib/InteractiveUtils/) standard library, which is loaded automatically when you work in the REPL. This is why you don’t need to explicitly load the module to use those macros in that environment.

---

<div class="post-metadata">

### Author: ![erlebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/erlebach/32/12973_2.png) [@erlebach](https://discourse.julialang.org/u/erlebach)
#### Post date: [March 1, 2023, 4:17pm UTC](https://discourse.julialang.org/t/code-warntype-not-found/95392/4 "2023-03-01T16:17:10Z")

</div>

Thank you! I added InteractiveUtils and now all works as expected.
