Hey, did anybody try out something like sos-notebook to run python and kotlin code in a notebook? Unfortunately, many libraries or papers still use python...
a
altavir
12/12/2021, 12:00 PM
I think it is dead. Kotlin is currently supported by Jupyter and DataLore. I used Kotlin with BeakerX, but kotlin kernel there is obsolete.
altavir
12/12/2021, 12:01 PM
The most complicated thing in a multi-language environment is to transfer data from one runtime to another. I think GraalVM Python support is very interesting thing to consider.
h
hfhbd
12/12/2021, 1:28 PM
Yep, this is the problem. After digging, BeakerX uses the same approach like sos-notebook (beakerX uses json, sos-notebook plain strings) and a shared variable with dynamic member feature. It works for small projects/testing, but not with big data/custom nested classes.
What do you mean with GraalVM Python?
a
altavir
12/12/2021, 2:16 PM
GraalVM allows to run python via trufle in the same address space as JVM code. It promises to be able to run Numpy as well.
h
holgerbrandl
12/13/2021, 7:12 AM
The last sos commit was seemingly in May, so it does not look too dead to me. It would be a wonderful way to mix the beauty of Kotlin for modelling with the power of R and python for analysis. Kotlin has still a long way to go to catch up here. Currently, we use rather disparate workflows to run kotlin first and then R over the data being generated.