https://kotlinlang.org logo
d

Didier Villevalois

01/10/2023, 12:53 PM
Hi everyone, I've got problems updating the Kotlin Jupyter Kernel. I followed the procedure on its website, i.e.: ``pip install kotlin-jupyter-kernel --upgrade``. It correctly downloaded and installed the
0.11.0.208
version. However, everytime I launch
jupyter notebook
and connect to it with the Kotlin Notebook IDEA plugin I get told that the kernel version (0.1.0-170) is incompatible the kotlin-dataframe version. If I scroll at the top of the log, I can see that indeed it tries to use the 0.11.0-170 version:
Copy code
Kernel args: /tmp/kotlin-kernel-config-kernelProcessConnection15069667844898789499.json, -home=/tmp/kernelProcess16547460509079481210, -cp=/tmp/kernelProcess16547460509079481210/lib/kotlin-jupyter-api-0.11.0-170.jar:/tmp...
Deleting the
/tmp/kernelProcess*
directories changes nothing.
Note that it seems to work correctly if I open the notebook directly in the web version of Jupyter.
i

Ilya Muradyan

01/10/2023, 1:28 PM
Now kernel is embedded into plugin so there is no way do update it with pip in plugin. The only way is to update a plugin itself. If after plugin updating version is the same, please use the previous version of dataframe for a while
d

Didier Villevalois

01/10/2023, 2:01 PM
I see. Thanks a lot for you quick answer! Is there a repository for the dev version of the plugin? I cannot find any newer versions than 223.8214.52 (for IDEA 2022.3.1) on the plugin homepage (cf. https://plugins.jetbrains.com/plugin/16340-kotlin-notebook/versions). It seems there are only nightly builds for 2021 versions of IDEA. Also, I am not specifying anywhere any version for Kotlin Dataframe. It seems to be selected automatically by the Kotlin Jupyter kernel.
Copy code
%useLatestDescriptors
%use dataframe, lets-plot
i

Ilya Muradyan

01/10/2023, 10:53 PM
We have Nightly builds, but they are not publicly available. I hope that update for kernel will be present in the next 223.* build
You may try previous stable version of dataframe (released in the end of July, 2022)
Copy code
%use dataframe(0.8.1)
10 Views