# How to include Julia REPL output along with code in a markdown code block

**URL:** https://discourse.julialang.org/t/how-to-include-julia-repl-output-along-with-code-in-a-markdown-code-block/73316
**Category:** New to Julia
**Created:** [December 19, 2021, 3:35am UTC](https://discourse.julialang.org/t/how-to-include-julia-repl-output-along-with-code-in-a-markdown-code-block/73316 "2021-12-19T03:35:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![samerb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/samerb/32/9242_2.png) [@samerb](https://discourse.julialang.org/u/samerb)
#### Post date: [December 19, 2021, 3:35am UTC](https://discourse.julialang.org/t/how-to-include-julia-repl-output-along-with-code-in-a-markdown-code-block/73316/1 "2021-12-19T03:35:56Z")

</div>

Sometimes I see people include example code with output–for example [here](https://discourse.julialang.org/t/creating-a-3d-frequency-array-for-categorical-variables-from-a-dataframe/55163/4). How do I do that? I only know backticks and triple backticks.

---

<div class="post-metadata">

### Author: ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)
#### Post date: [December 19, 2021, 3:53am UTC](https://discourse.julialang.org/t/how-to-include-julia-repl-output-along-with-code-in-a-markdown-code-block/73316/2 "2021-12-19T03:53:35Z")

</div>

How do you use Julia? Just copy and paste from the Julia REPL

---

<div class="post-metadata">

### Author: ![samerb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/samerb/32/9242_2.png) [@samerb](https://discourse.julialang.org/u/samerb)
#### Post date: [December 19, 2021, 4:58am UTC](https://discourse.julialang.org/t/how-to-include-julia-repl-output-along-with-code-in-a-markdown-code-block/73316/3 "2021-12-19T04:58:28Z")

</div>

I use Jupyter. It seems a bit awkward to copy and paste the output from Jupyter.

```julia
1+1
Out[27]: 2

```

is about the best I can get and I’m finding it hard to even highlight the “out” part.

---

<div class="post-metadata">

### Author: ![aramirezreyes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aramirezreyes/32/42573_2.png) [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)
#### Post date: [December 19, 2021, 5:31am UTC](https://discourse.julialang.org/t/how-to-include-julia-repl-output-along-with-code-in-a-markdown-code-block/73316/4 "2021-12-19T05:31:42Z")

</div>

Copy and paste from the REPL and use the triple backticks as always.

---

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [December 19, 2021, 7:50am UTC](https://discourse.julialang.org/t/how-to-include-julia-repl-output-along-with-code-in-a-markdown-code-block/73316/5 "2021-12-19T07:50:48Z")

</div>

Another bitte for the REPL - it has the added benefit of making sure that you’re not running into a jupyter specific issue, and you’re also running your code in a fresh Julia session when you copy it over, so you’ll also find any issues that come from running some code in cells you deleted and forgot about.
