How to suppress printing of variable values in zeppelin

StephenBoesch picture StephenBoesch · Aug 5, 2015 · Viewed 7.9k times · Source

Given the following snippet:

val data = sc.parallelize(0 until 10000)
val local = data.collect 
println(s"local.size")

Zeppelin prints out the entire value of local to the notebook screen. How may that behavior be changed?

Answer

Caner picture Caner · Jan 7, 2016

You can also try adding curly brackets around your code.

{val data = sc.parallelize(0 until 10000)
val local = data.collect 
println(s"local.size")}