Skip to content

Instantly share code, notes, and snippets.

@willingc
Last active January 25, 2022 23:20
Show Gist options
  • Save willingc/61d65c5af7843e1f0d82dbf823fe1828 to your computer and use it in GitHub Desktop.
Save willingc/61d65c5af7843e1f0d82dbf823fe1828 to your computer and use it in GitHub Desktop.
Installing Almond (Jupyter Scala) kernel

Scala Kernel Instructions for MacOS

Note: These instructions are over 3 years old. Please consult the Scala docs and the Almond docs for up-to-date instructions.

  1. Download Scala https://www.scala-lang.org/download/

    • check Java version (java -version)
    • Install Scala sbt brew install sbt@1
      You can use $SBT_OPTS to pass additional JVM options to sbt.
      Project specific options should be placed in .sbtopts in the root of your project.
      Global settings should be placed in /usr/local/etc/sbtopts
      
  2. Install coursier

    brew install --HEAD coursier/formulas/coursier

  3. Install almond

    • git clone https://github.com/willingc/almond.git

    • edit project/plugin.sbt

      • add addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.1.0-SNAPSHOT")
    • bootstrap install

      coursier bootstrap \
      →     -i user -I user:sh.almond:scala-kernel-api_$SCALA_VERSION:$ALMOND_VERSION \
      →     sh.almond:scala-kernel_$SCALA_VERSION:$ALMOND_VERSION \
      →     -o almond
      
    • ./almond --install

@willingc
Copy link
Author

@jimka2001 I would consult the Almond docs. This gist is over 3 years old, and I haven't used Scala in about the same time. Good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment