Ilya Muradyan

Results 109 comments of Ilya Muradyan

In pip and conda installations, kernel specs are installed to `{sys.prefix}/share/jupyter/kernels/kotlin`. Hopelessly, we cannot install kernel to user directory or some other absolute dir, because it is not supported by...

Does this compiles for you? ```kotlin @file:DependsOn("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2") import kotlin.time.* import kotlinx.coroutines.* @OptIn(ExperimentalTime::class) val res = runBlocking { val mark = kotlin.time.TimeSource.Monotonic.markNow() delay(3) mark.elapsedNow() } res ``` It seems that actual...

Oh, it's a bit more interesting. What is your `%APPDATA%` env? `C:\Users\\AppData\Roaming`, I guess?

The easiest way to resolve such issues is to set JUPYTER_PATH env. variable: https://jupyter-client.readthedocs.io/en/stable/kernels.html#kernel-specs In your case it will be `%APPDATA%/Python/share/jupyter` You have this problem not because of Windows, but...

Ok, the last problem left here (and the one that could be resolved) is passing free compiler args. It [required some fixes in REPL](https://github.com/JetBrains/kotlin/pull/4043), will get back to you once...

@frankgerhardt sorry for delay, I haven't mentioned your message... For now it works like this. 1. Restart kernel and execute: ``` @file:CompilerArgs("-Xopt-in=kotlin.RequiresOptIn") ``` Note that it should be the first...

Maybe more generic approach ```kotlin interface ComparableRenderer : Comparable, Renderer fun compare(r1: Renderer, r2: Renderer): Int { return if (r1 is ComparableRenderer) { r1.compareTo(r2) } else { if (r2 is...

"Electors" approach ```kotlin fun interface RenderersElector { fun elect(renderers: Collection): Collection } fun electMax(renderers: Collection): Renderer { return electors.fold(renderers) { acc, elector -> elector.elect(acc) }.first() // in ideal case, should...

Thanks, @jbaron! It's a known issue, but I don't know what to do with it for now. I will look more closely when I have time.

Note. There is a div with `outputWrapper` class in Classic and `jp-Cell-outputWrapper` class in Lab that holds the cell outputs. When any outputs are added to the cell, div with...