# Cell output in Jupyter notebook

**URL:** https://discourse.julialang.org/t/cell-output-in-jupyter-notebook/15158
**Category:** General Usage
**Tags:** question
**Created:** [September 19, 2018, 7:20am UTC](https://discourse.julialang.org/t/cell-output-in-jupyter-notebook/15158 "2018-09-19T07:20:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Ajaychat3](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)
#### Post date: [September 19, 2018, 7:20am UTC](https://discourse.julialang.org/t/cell-output-in-jupyter-notebook/15158/1 "2018-09-19T07:20:07Z")

</div>

I am using Julia with Jupyter notebook. See the code below.

```julia
#ScikitLearn.CrossValidation.KFold(10, n_folds=3)
cross_val_score(model, X_tst, y_tst, cv=3)

Output : 3-element Array{Float64,1}:
 0.9961161079313164
 0.9964430271065865
 0.9970154135492048

```

However if the commented out code is after the julia code no output is thrown. The same issue is not there with python.

```julia
cross_val_score(model, X_tst, y_tst, cv=3)
#ScikitLearn.CrossValidation.KFold(10, n_folds=3)

```

I just want to know if this the default behaviour of julia. I know I can get the output using @show or @printf functions in this case.

---

<div class="post-metadata">

### Author: ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)
#### Post date: [September 19, 2018, 7:44am UTC](https://discourse.julialang.org/t/cell-output-in-jupyter-notebook/15158/2 "2018-09-19T07:44:32Z")

</div>

(I can’t answer your question, but you should read [PSA: how to quote code with backticks](https://discourse.julialang.org/t/psa-how-to-quote-code-with-backticks/7530))

---

<div class="post-metadata">

### Author: ![Ajaychat3](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)
#### Post date: [September 19, 2018, 8:14am UTC](https://discourse.julialang.org/t/cell-output-in-jupyter-notebook/15158/3 "2018-09-19T08:14:16Z")

</div>

Apologies. I worngly used single quotes instead of backticks. I have edited the code.

---

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [September 19, 2018, 10:52am UTC](https://discourse.julialang.org/t/cell-output-in-jupyter-notebook/15158/4 "2018-09-19T10:52:03Z")

</div>

See [Minor issue - having comment as last line suppresses output · Issue #734 · JuliaLang/IJulia.jl · GitHub](https://github.com/JuliaLang/IJulia.jl/issues/734)
