holgerbrandl
06/26/2020, 6:23 AMDouble.NaN.toInt()
evaluating to 0 is just plain wrong (and a bug imho). ( NaN.roundToInt
at least throws an exception)Slackbot
06/26/2020, 8:16 PMholgerbrandl
07/02/2020, 10:21 PMVladyslav Sitalo
07/04/2020, 1:45 AMaltavir
08/14/2020, 8:57 AMaltavir
08/15/2020, 4:04 PMaltavir
08/27/2020, 12:59 PMaltavir
08/27/2020, 1:24 PMbjonnh
09/02/2020, 11:53 PMSteven Wang
09/04/2020, 1:14 AMFlorian Magin
09/06/2020, 3:08 PMFlorian Magin
09/07/2020, 11:33 AMIkotlinKt.main
like the python code in jupyter would, but I call it from java code. This allows me to attach a jupyter-console to the kernel and access all the packages. But the classes inside the REPL do not share the static class variables with the java code that started the kotlin kernel via IkotlinKt.main
.
My guess is that this is accidental because this would never be relevant if you the kernel is supposed to be started by Python anyway. Does someone have a quick pointer of the relevant documentation or code concerning those internals?Florian Magin
09/07/2020, 12:14 PMScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider org.jetbrains.kotlin.mainKts.jsr223.KotlinJsr223MainKtsScriptEngineFactory could not be instantiated
in the kernel output which is fairly vague. Is there a way to get a more concrete error?Steven Wang
09/07/2020, 2:45 PMval df = dataFrameOf("strcol") ("s1", "s2", "s3")
val l = listOf("s1", "s2")
// Is there any vectorized version to achieve this filter?
df.filterByRow { l.contains(it["strcol"]) }
Maria Khalusova
09/09/2020, 2:23 PMFlorian Magin
09/11/2020, 2:55 PMimplicitReceivers
can be used. Are they supposed to be changeable at runtime?Florian Magin
09/11/2020, 3:02 PMimplicitRecievers
of the the compiler is passed the list of classes, and implicitReceivers
of the evaluator is passed the list of objects?Florian Magin
09/11/2020, 3:04 PMval x = ScriptEvaluationConfiguration {
implicitReceivers(builder)
}
I think I don't fully understand what this is a short form forFlorian Magin
09/11/2020, 4:04 PMx = _
Florian Magin
09/11/2020, 4:05 PMx = _2
to reference specific cells and not just the lastSteven Wang
09/16/2020, 12:32 PMBasayya Kulkarni
09/25/2020, 1:11 PMBasayya Kulkarni
09/25/2020, 1:23 PMTilman Krokotsch
09/27/2020, 2:31 PMSteven Wang
09/29/2020, 5:11 PMdf.addColumn("label") {it["range"].asDoubles().drop(1) + listOf(Double.NaN)}
Florian Magin
10/02/2020, 1:06 PMShift+Tab
Shortcut in Jupyter that displays a tooltip (with the documentation) for the object at the current cursor. I think this doesn't work with Kotlin yet, but would be a great feature. Has anyone looked into this yet?Florian Magin
10/02/2020, 1:11 PMMichal Harakal
10/21/2020, 7:33 PMFlorian Magin
11/04/2020, 1:26 PMaltavir
11/05/2020, 6:41 AMDebugContext
like this:
interface DebugContext{
fun <T> trace(value: T): ReadWriteProperty<Any?, T>
(suspend) fun breakPoint()
}
• The idea is that you can wrap any variable in the context in a delegate and dump all changes to a debug container. When the breakPoint
is called, the execution will block/suspend and dump current debug state to console/output widget and wait for user input to unblock.
This could be implemented on a library level based on the notebook API. The usage will look like this:
%%debug
var a by trace(4)
repeat(10){
a++
breakPoint()
}
If you like this idea, I can write an issue from it. I personally prefere not to do complex code in the notebook and move all heavy logic to the project.altavir
11/05/2020, 6:41 AMDebugContext
like this:
interface DebugContext{
fun <T> trace(value: T): ReadWriteProperty<Any?, T>
(suspend) fun breakPoint()
}
• The idea is that you can wrap any variable in the context in a delegate and dump all changes to a debug container. When the breakPoint
is called, the execution will block/suspend and dump current debug state to console/output widget and wait for user input to unblock.
This could be implemented on a library level based on the notebook API. The usage will look like this:
%%debug
var a by trace(4)
repeat(10){
a++
breakPoint()
}
If you like this idea, I can write an issue from it. I personally prefere not to do complex code in the notebook and move all heavy logic to the project.Ilya Muradyan
11/05/2020, 12:12 PMaltavir
11/05/2020, 12:22 PM