I'm trying to create a Datelore Kotlin notebook wi...
# datascience
p
I'm trying to create a Datelore Kotlin notebook with a custom Maven Repo using @file:Repository command (it is a JFrog based Repo). However when it then tries to resolve a module (I'm using @file:DependsOn), it says it cannot find that module. Strange thing is however that the first line it said it tried, is actually the correct URL. And this URL does resolve fine when entered in a browser. So the URL it looks for is correct but somehow still cannot retrieve it. Does anyone know if Datalore has some restrictions on connecting to outside world (like egress rules) or perhaps doesn't play nice with some of the redirection that sometimes goes one with Maven Repo's ? Not sure this is best channel to ask this question, but seemed the most appropriate one.
a
Last time I checked, DataLore used an obsolete kernel, that does not support most of jupyter kernel features including module loading. I've risen the issue with them recently in Twitter. It would be nice if they could fully support kotlin jupyter kernel api
p
Thanks, indeed would be nice to have better Kotlin supported notebooks (other than deploying your own that is). There is already an abundance of Python notebook solutions out there, so hopefully DataLore also put bit more focus on a differentiator.
i
Regarding kernel version, it is possible to update it for each notebook. To update to the stable version, you may use library manager. Find kotlin-jupyter-kernel there and update to the version you want. To update to the dev version, you may execute pip-install with the corresponding arguments from the notebook cell and then restart the kernel: Runtime.getRuntime().exec("pip install ...")
a
We are talking about datalore, I do not think it is possible to install custom kernels ther.
i
I'm talking about datalore too)
a
Ah, I see. And will it work the same way as for jupyter?
I would really like a short instruction about loading the latest jupyter kernel in the datalore
i
Sure, we've checked it recently. Update the package, restart the kernel and you are done
I hope it's clear how to do it with library manager
a
I will try it right away, thanks
i
For dev version this one should work:
@Peter if your problem will not be resolved after update, please share more details about the issue - what repository and what dependency you try to resolve
p
Thanks!!!!! posted link to it in channel in case you want to see it.
a
Finally loaded all that was necessary, but sadly, js library loading does not work properly the asme way it does not work for classic notebooks 😞
p
Lab vs Classic is indeed always a challenge. But you can of course support both. The UI/JS components I developed support both, and then a simple switch is all that is required. See also the link I posted