-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running the kotlin-jupyter kernel in google colab #357
Comments
Hi! To run Kotlin kernel, Java 11 should be installed on the machine, maybe that's the reason? |
Attempted an install using the pip install-jdk package, still no juice Edit: |
The logs are a bit hard to get to as the log window keeps closing every time the runtime attempts a reconnect, but in a flash I saw this.
Any ideas? |
Alternatively, you can download kotlin in colab... which is obviously slower (Please note I am a newbie to Kotlin and was going through a Android Kotlin tutorial with exercises when I thought about using a jupyter notebook and colab so I cannot guarantee the soundness of these approaches as alternatives) Here are three ways:
|
I almost got kotlin kernel working in jupyter kernel. the main reason it don't "just work" is because zmq in java don't support icp protocol which google colab uses. you can workaround that by using icp proxy like https://gist.github.com/SpencerPark/e2732061ad19c1afa4a33a58cb8f18a9 (*) I have a jbang script that setup various jvm kernels. one can run in colab using the following python snippet:
after that you can switch to the kernel with "kotlin ipc" in the name. it works but stalls/fails due to the kernel failing on #440 |
This might be more of a question than an issue - I'll have a go anyways;
Did anyone have success running the kotlin-jupyter kernel in google colab?
I tried running this notebook:
Expected outcome:
The notebook connects to the new kernel as specified in the kernelspec json in the notebook source, and the following cell with kotlin code can be run.
Actual outcome:
The notebook repeatedly tries to connect, fails and crashes.
I previously had success with running clojure in colab in a similar fasion.
Any ideas? Thanks in advance.
The text was updated successfully, but these errors were encountered: