Installation
Create a launcher
- Set the desired version of Scala and Almond as environment variables:
$ SCALA_VERSION=2.12.8 ALMOND_VERSION=0.6.0
Equivalent Windows command
> set SCALA_VERSION=2.12.8
> set ALMOND_VERSION=0.6.0
The available versions of Scala and Almond are can be found here. Adjust ALMOND_VERSION
and SCALA_VERSION
at your convenience to meet your needs. Not all combinations are guaranteed to be available. See the available combinations here).
- Create a launcher via coursier:
$ curl -Lo coursier https://git.io/coursier-cli
$ chmod +x coursier
$ ./coursier bootstrap \
-r jitpack \
-i user -I user:sh.almond:scala-kernel-api_$SCALA_VERSION:$ALMOND_VERSION \
sh.almond:scala-kernel_$SCALA_VERSION:$ALMOND_VERSION \
-o almond
Equivalent Windows command
> bitsadmin /transfer downloadCoursierCli https://git.io/coursier-cli "%cd%\coursier"
> bitsadmin /transfer downloadCoursierBat https://git.io/coursier-bat "%cd%\coursier.bat"
> .\coursier bootstrap ^
-r jitpack ^
-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
Install the almond kernel
- Run the launcher to install the almond kernel:
$ ./almond --install
Equivalent Windows command
> .\almond --install
- Once the kernel is installed, you can use it within Jupyter or nteract.
If you are satisfied that the kernel is working properly, you may safely remove the almond launcher: rm -f almond
Getting help about the launcher
- Help:
./almond --help
- Available options:
Once the kernel is installed, the generated launcher can then be safely removed, with rm -f almond
.