# Juno's enhanced display items are out of order

**URL:** <https://discourse.julialang.org/t/junos-enhanced-display-items-are-out-of-order/4841>\
**Category:** Specific Domains\
**Tags:** juno\
**Created:** [July 13, 2017, 7:16pm UTC](https://discourse.julialang.org/t/junos-enhanced-display-items-are-out-of-order/4841 "2017-07-13T19:16:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tuckermcclure](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tuckermcclure/32/1187_2.png) [@tuckermcclure](https://discourse.julialang.org/u/tuckermcclure)\
**Post date:** [July 13, 2017, 7:16pm UTC](https://discourse.julialang.org/t/junos-enhanced-display-items-are-out-of-order/4841/1 "2017-07-13T19:16:29Z")

</div>

I have a mix of `println` and things that trigger “enhanced display” features in Juno, like `display`ing a warning. The enhanced display items show up in the console out of order. E.g., for:

```julia
println("Hi.");
display(:a_symbol);
println("Hej.");

```

I see the output:

```julia
Hi.
Hej.
:a_symbol

```

This seems like a bug? The Juno doc says to report such things here.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [July 15, 2017, 11:36am UTC](https://discourse.julialang.org/t/junos-enhanced-display-items-are-out-of-order/4841/2 "2017-07-15T11:36:42Z")

</div>

Yeah, there’s no way to guarantee proper ordering here afaict – `println` just dumps text into `STDOUT` (which is also buffered), while `display` sends JSON over a socket. It usually works okayish though (when you have enough work being done between the statements, it’s very likely that the ordering is correct).

---

<div class="post-metadata">

**Author:** ![tuckermcclure](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tuckermcclure/32/1187_2.png) [@tuckermcclure](https://discourse.julialang.org/u/tuckermcclure)\
**Post date:** [July 15, 2017, 6:11pm UTC](https://discourse.julialang.org/t/junos-enhanced-display-items-are-out-of-order/4841/3 "2017-07-15T18:11:51Z")

</div>

Thanks @pfitzseb. I see. Since I’m just using `println` and `display` for debugging, maybe I should change all my `println` statements to `Juno.info` so that it will use the same mechanism and show up in order with `display`.

This now gives the expected output:

```julia
Juno.info("Hi.");
display(:a_symbol);
Juno.info("Hej.");

```
