Skip to content

Commit 48a3594

Browse files
committed
Prefer isolated outputs for Kotlin Notebook
1 parent 50e55f3 commit 48a3594

File tree

1 file changed

+5
-0
lines changed
  • core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/jupyter

1 file changed

+5
-0
lines changed

core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/jupyter/Integration.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import org.jetbrains.kotlinx.dataframe.impl.createStarProjectedType
3737
import org.jetbrains.kotlinx.dataframe.impl.renderType
3838
import org.jetbrains.kotlinx.jupyter.api.HTML
3939
import org.jetbrains.kotlinx.jupyter.api.HtmlData
40+
import org.jetbrains.kotlinx.jupyter.api.JupyterClientType
4041
import org.jetbrains.kotlinx.jupyter.api.KotlinKernelHost
4142
import org.jetbrains.kotlinx.jupyter.api.VariableName
4243
import org.jetbrains.kotlinx.jupyter.api.declare
@@ -56,6 +57,10 @@ internal class Integration : JupyterIntegration() {
5657
val codeGen = ReplCodeGenerator.create()
5758
val config = JupyterConfiguration()
5859

60+
if (notebook.jupyterClientType == JupyterClientType.KOTLIN_NOTEBOOK) {
61+
config.display.isolatedOutputs = true
62+
}
63+
5964
onLoaded {
6065
declare("dataFrameConfig" to config)
6166
}

0 commit comments

Comments
 (0)