An example of running Apache Spark using Scala in ipython notebook