Scala notebooks

In our cloud-hosted environment, we have the scala-jupyter kernel installed for Jupyter, so you can create Scala notebooks.

If you have Domino deployed on your own hardware, you can create a custom environment and install the Scala kernel to give yourself the same functionality. To install the kernel, follow the instructions on the project's Github page linked above. At the time of writing this help article, installation was just running:

curl -L -o jupyter-scala && chmod +x jupyter-scala && ./jupyter-scala && rm -f jupyter-scala

To start a Scala notebook, choose "Scala 2.11" from the "new" menu on the Jupyter main page.

The scala-jupyter kernel provides a number of nice helper functions. One of the most important is 

classpath.add("organization" % "name" % "version")

which lets you add dependencies into the Scala environment. E.g., to load the Spark jars you would use:

classpath.add("org.apache.spark" % "spark-core_2.11" % "1.6.0")

Was this article helpful?
0 out of 0 found this helpful