# What features does the \`show\` method have?

**URL:** https://discourse.julialang.org/t/what-features-does-the-show-method-have/62720
**Category:** New to Julia
**Tags:** question
**Created:** [June 11, 2021, 7:16am UTC](https://discourse.julialang.org/t/what-features-does-the-show-method-have/62720 "2021-06-11T07:16:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sugbaable](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@Sugbaable](https://discourse.julialang.org/u/Sugbaable)
#### Post date: [June 11, 2021, 7:16am UTC](https://discourse.julialang.org/t/what-features-does-the-show-method-have/62720/1 "2021-06-11T07:16:47Z")

</div>

I’m looking at this project called [ComputationalHomology.jl](https://github.com/wildart/ComputationalHomology.jl), and learning some Julia along the way. I notice that at line 122 of file `constructions.jl` there is this line:

```julia

splxs = map(Simplex, 1:n)

```

Which if I just (after `using ComputationalHomology`) run in the REPL (say with `n = 10`) spits out

```julia

"σ(1,)"
 "σ(2,)"
 "σ(3,)"
 "σ(4,)"
 "σ(5,)"
 "σ(6,)"
 "σ(7,)"
 "σ(8,)"
 "σ(9,)"
 "σ(10,)"

```

What cues me about this is the `σ`, and I went to look for where this comes from in the project. As far as I can tell, the relevant part of the code in the ComputationalHomology project is the following line 14 from `simplex.jl` (ie the “source file” for the above Simplex object):

```julia

show(io::IO, splx::Simplex) = show(io, "σ$(splx.vs)")

```

I’m wondering then if there is something I’m missing, or if the `show` function is what is default run when you run a function in the REPL.

Sorry if my syntax/jargon is not quite right, am quite new to this language, and looking to become more familiar!

---

<div class="post-metadata">

### Author: ![Skoffer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skoffer/32/378_2.png) [@Skoffer](https://discourse.julialang.org/u/Skoffer)
#### Post date: [June 11, 2021, 8:36am UTC](https://discourse.julialang.org/t/what-features-does-the-show-method-have/62720/2 "2021-06-11T08:36:29Z")

</div>

Well, it’s two step process:

1. You run a function which returns object
2. This object is being shown in REPL with the help of the `show` method.

I.e. function itself doesn’t use `show` to display anything.

Maybe this talk will be of interest to you: [JuliaCon 2020 | Display, show and print -- how Julia's display system works | Fredrik Ekre - YouTube](https://www.youtube.com/watch?v=S1Fb5oNhhbc)

---

<div class="post-metadata">

### Author: ![Sugbaable](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@Sugbaable](https://discourse.julialang.org/u/Sugbaable)
#### Post date: [June 11, 2021, 9:38am UTC](https://discourse.julialang.org/t/what-features-does-the-show-method-have/62720/3 "2021-06-11T09:38:51Z")

</div>

Ahhh, I see, thank you! The talk was helpful too 🙂
