domino logo
4.2
  • Overview
  • Domino Cloud
  • Get started
  • Work with data
  • Develop models
  • Scale out distributed computing
  • Deploy models
  • Publish apps
  • Projects
  • Collaborate
  • Workspaces
  • Jobs
  • Environments
  • Executions
  • Launchers
  • Environment variables
  • Secure credential store
  • Organizations
  • Domino CLI
  • Troubleshooting
  • Get help
  • Additional Resources
domino logo
About Domino
Domino Data LabKnowledge BaseData Science BlogTraining
>
User Guide
>
Environments
>
Customize Environments
>
Scala notebooks

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 https://git.io/vzhRi && chmod +x jupyter-scala && ./jupyter-scala && rm -f jupyter-scala

To start a Scala notebook, go to New > Scala 2.11 on the Jupyter main page.

image0

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")

image1

Domino Data Lab
Knowledge Base
Data Science Blog
Training
Copyright © 2022 Domino Data Lab. All rights reserved.