Support Questions

Find answers, ask questions, and share your expertise

How to show multiple outputs using livy in Zeppelin notebook?

New Contributor

I want to show/print multiple data like in spark2 using Zeppelin notebook, is that possible?

85392-image.png

1 REPLY 1

@Dimitris Pyralis

I think is due the livy statements api only returns the result of the code block rather than the result of each single statement. I found that if you include all the println statements within a block, as the last block, then it will return the desired output:

{
println("Hello")
println("World")
}

HTH

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.