https://kotlinlang.org logo
Title
h

holgerbrandl

03/14/2018, 3:49 PM
Hey @ilya.chernikov & @apatrida, I’m presenting about Kotlin and Data Science next week at a Kotlin Night in Frankfurt, and I thought about including some slides about the kotlin kernel for jupyter. Unfortunately, it is in a rather broken state at the moment because of a dependency issue (see https://github.com/ligee/kotlin-jupyter/issues/15). Do you think there’s any chance that you could have a look, or guide me concerning a fix?
c

czyzby

03/14/2018, 4:07 PM
Have you tried BeakerX? http://beakerx.com/
I managed to get Kotlin kernel to work. It lacks autocompletion and some other features though, so I wouldn't say it's "production-ready".
h

holgerbrandl

03/15/2018, 8:48 AM
@czyzby Thanks for the pointer. I heard about beaker, but now about beakerx yet. It looks very promising.
What I could not find in the docs yet, is a way to load in maven dependencies. Is this possible?
For example, I’ve created a display adapter under https://github.com/holgerbrandl/krangl/blob/master/examples/beakerx/src/main/java/krangl/beakerx/TableDisplayer.java but I’m unsure how to actually use it.
c

czyzby

03/15/2018, 4:36 PM
%classpath add jar path_to_jar.jar
Or
%classpath add mvn com.group lib-name 1.0.0
h

holgerbrandl

03/15/2018, 9:16 PM
Thanks, the jar downloading progress is very nice. However, it does not seem to support local maven nor jcenter yet, correct?
c

czyzby

03/15/2018, 9:22 PM
Not sure, I only gave it a try once. I'm used to first-class Python support in Jupyter, so Kotlin just doesn't work for me there. When I'm working with Kotlin, I do it precisely for the better tooling support.
@holgerbrandl You're trying to make a pretty table display comparable to Pandas in Jupyter, aren't you?
I have to try out your project some time. BTW, I suggest rewriting the huge examples code block to code->output block pairs.
h

holgerbrandl

03/15/2018, 9:58 PM
yep I do. I’ve seen a similar adapter for jtablesaw, and the beakerx API looked easy enough to give it try.
c

czyzby

03/15/2018, 10:01 PM
Make it easy to style with CSS, please. (If possible.)
h

holgerbrandl

03/15/2018, 10:02 PM
I was actually hoping for an existing widget impl for which I just have to provide data-bindings…
c

czyzby

03/15/2018, 10:02 PM
I was trying to change style of Pandas tables when I used a Jupyter extension to make an interactive presentation and I remember it being a pain.
It makes sense, but if there's anything you can do to make it easier to style (possibly with actual static-typed settings rather than some hidden string properties), I'd appreciate that.