# Julia print commands not working in emacs org-mode

**URL:** https://discourse.julialang.org/t/julia-print-commands-not-working-in-emacs-org-mode/6944
**Category:** General Usage
**Created:** [November 7, 2017, 8:34pm UTC](https://discourse.julialang.org/t/julia-print-commands-not-working-in-emacs-org-mode/6944 "2017-11-07T20:34:55Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![garrison](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/garrison/32/209519_2.png) [@garrison](https://discourse.julialang.org/u/garrison)
#### Post date: [November 10, 2017, 3:37am UTC](https://discourse.julialang.org/t/julia-print-commands-not-working-in-emacs-org-mode/6944/5 "2017-11-10T03:37:52Z")

</div>

OK, it turns out that for `:results value` the following code is actually what is being executed if you study `ob-julia.el`:

```julia
writecsv("/tmp/babel-2072Vgu/julia-2072RSg", begin
    a=[1;2;3]
    b=[3;4;5]
    c=a+b
    print(c)
end)

```

The return value of `print`, which is `nothing`, is passed to `writecsv` which thus fails. And everything written to STDOUT is ignored as far as babel is concerned.

EDIT: See [here](https://github.com/gjkerns/ob-julia/blob/master/ob-julia-doc.org#evaluation-inside-the-org-buffer) for an explanation of why `writecsv` is called. I am not convinced this is the optimal function to call; really there should be a function (I think) that takes any julia value and writes it in the format orgmode expects, without using csv as an intermediary…

---

_[View the full topic](https://discourse.julialang.org/t/julia-print-commands-not-working-in-emacs-org-mode/6944)._
