title: How to println from foreach in Jupyter?
body: <p>Running</p>
  
  <pre><code>val animals = sc.parallelize(List("cat", "dog", "tiger", "lion", "gnu", "crocodile", "ant", "whale", "dolphin", "spider"), 3)
  animals.foreachPartition(x =&gt; println(x.mkString(", ") + " are animals"))
  </code></pre>
  
  <p>in spark-shell returns</p>
  
  <pre><code>lion, gnu, crocodile are animals
  cat, dog, tiger are animals
  ant, whale, dolphin, spider are animals
  </code></pre>
  
  <p>but if I run this in Jupyter with Apache Toree Spark kernel I get no output. The terminal from which I started Jupyter outputs</p>
  
  <pre><code>animals: org.apache.spark.rdd.RDD[String] = ParallelCollectionRDD[27] at parallelize at &lt;console&gt;:20
  16/05/17 09:33:32 [WARN] o.a.t.k.p.v.s.KernelOutputStream - Suppressing empty output: ''
  </code></pre>
  
  <p>How do I get Jupyter to output the animals as the spark-shell using foreach?</p>