Kotlin on AWS SageMaker Kotlin notebooks work ver...
# datascience
p
Kotlin on AWS SageMaker Kotlin notebooks work very nice on AWS SageMaker (disclaimer: only tested so far in the context of my own project roboquant.org). The response when executing a cell is snappy and graphs and other HTML outputs display correctly. Both classic notebooks and labs are working. Initial loading of packages is a bit slow, but that I guess that is partially because I use a lot of “SNAPSHOT” packages where Maven local is of less help. I typically use a
ml.c5.xlarge
but that is mainly because of some more CPU intensive calculations. A cheaper EC2 instance type should be fine for simpler work-loads. Since there is no out-of-the-box support for Kotlin kernels, you’ll have to provide a “lifecycle script” that will install the required packages. You can find more info including the lifecycle script I created at https://roboquant.org/tutorial/install.html#_aws_sagemaker But basically it boils down to installing these two packages when the notebook instance is created:
conda install -y openjdk
conda install -y -c jetbrains kotlin-jupyter-kernel
That is all. And the above is only done once during creation and after that when you start/stop the notebook it is just like any other notebook. If you have any questions, feel free to post them.
👍 6
🔥 3