Adding new jupyter kernels to your environmentΒΆ

By default the Domino Standard Environment includes kernels for Python and Julia. However,``` you can add new kernels to your environment in just a few steps. Below we will show how you might add a scala kernel to your environment.

Install any necessary dependencies

USER root

# Install scala (requires java to already be installed)
RUN echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list && \
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo apt-key add && \
apt-get update && apt-get install sbt && \
rm -rf /var/lib/apt/lists/* && \
rm -Rf /tmp/*

USER ubuntu

# Install scala kernel (almond)
RUN sudo curl -Lo coursier https://git.io/coursier-cli && \
    sudo chmod +x coursier && \
    ./coursier launch --fork almond:0.10.9 --scala 2.12 -- --install && \
    sudo rm -f coursier

After adding these commands to your environment Dockerfile you will have the ability to start scala notebooks and run scala commands directly from the JupyterLab console.

scala_kernel_jupyterlab

We can add new kernels to domino environments much like we added the scala kernel. You can find more info on how to install the scala kernel at https://almond.sh/docs/quick-start-install.