# How to avoid prefixing module names when using Symbol on struct type in Pluto notebooks?

**URL:** <https://discourse.julialang.org/t/how-to-avoid-prefixing-module-names-when-using-symbol-on-struct-type-in-pluto-notebooks/89227>\
**Category:** Pluto\
**Tags:** question\
**Created:** [October 25, 2022, 3:20am UTC](https://discourse.julialang.org/t/how-to-avoid-prefixing-module-names-when-using-symbol-on-struct-type-in-pluto-notebooks/89227 "2022-10-25T03:20:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![liuyxpp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/liuyxpp/32/9870_2.png) [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Post date:** [October 25, 2022, 3:20am UTC](https://discourse.julialang.org/t/how-to-avoid-prefixing-module-names-when-using-symbol-on-struct-type-in-pluto-notebooks/89227/1 "2022-10-25T03:20:22Z")

</div>

Say there is a type Baz in package Foo’s internal module Bar, `Foo.Bar.Baz`. Baz is exported by Foo. When I do Symbol in REPL, I have

```julia
julia> using Foo
julia> Symbol(Baz)
:Baz

```

But when I do the same in Pluto notebook, I have

```julia
# Cell 1
using Foo

# Cell 2
Symbol(Baz)

# which outputs `Symbol("Foo.Bar.Baz")`

```

Why Pluto behave differently? And How can I remove the package and module names?

---

<div class="post-metadata">

**Author:** ![dylanxyz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dylanxyz/32/36646_2.png) [@dylanxyz](https://discourse.julialang.org/u/dylanxyz)\
**Post date:** [October 25, 2022, 3:50pm UTC](https://discourse.julialang.org/t/how-to-avoid-prefixing-module-names-when-using-symbol-on-struct-type-in-pluto-notebooks/89227/2 "2022-10-25T15:50:33Z")

</div>

Use [`nameof`](https://docs.julialang.org/en/v1/base/base/#Base.nameof-Tuple%7BDataType%7D):

```julia
julia> nameof(Baz)
:Baz

```
