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

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> using Foo
julia> Symbol(Baz)

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

# Cell 1
using Foo

# Cell 2

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

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

Use nameof:

julia> nameof(Baz)
1 Like