Cell output in Jupyter notebook

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

#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.

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.

(I can’t answer your question, but you should read PSA: how to quote code with backticks)

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

1 Like

See Minor issue - having comment as last line suppresses output · Issue #734 · JuliaLang/IJulia.jl · GitHub