Skip to content

Commit c4951a8

Browse files
committed
added separate kotlin notebook url
1 parent baf8a4b commit c4951a8

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,11 @@ package org.jetbrains.kotlinx.dataframe.jupyter
22

33
import org.jetbrains.kotlinx.jupyter.api.JupyterClientType
44
import org.jetbrains.kotlinx.jupyter.api.JupyterClientType.DATALORE
5-
import org.jetbrains.kotlinx.jupyter.api.JupyterClientType.JUPYTER_LAB
6-
import org.jetbrains.kotlinx.jupyter.api.JupyterClientType.JUPYTER_NOTEBOOK
7-
import org.jetbrains.kotlinx.jupyter.api.JupyterClientType.KERNEL_TESTS
85
import org.jetbrains.kotlinx.jupyter.api.JupyterClientType.KOTLIN_NOTEBOOK
9-
import org.jetbrains.kotlinx.jupyter.api.JupyterClientType.UNKNOWN
106
import org.jetbrains.kotlinx.jupyter.api.KotlinKernelVersion
117

128
private const val UPDATING_DATALORE_URL = "https://github.com/Kotlin/kotlin-jupyter/tree/master#datalore"
9+
private const val UPDATING_KOTLIN_NOTEBOOK_URL = "https://github.com/Kotlin/kotlin-jupyter#kotlin-notebook"
1310
private const val UPDATING = "https://github.com/Kotlin/kotlin-jupyter/tree/master#updating"
1411

1512
internal fun getKernelUpdateMessage(
@@ -22,10 +19,8 @@ internal fun getKernelUpdateMessage(
2219
append("Follow the instructions at: ")
2320

2421
when (clientType) {
25-
DATALORE ->
26-
appendLine(UPDATING_DATALORE_URL)
27-
28-
KERNEL_TESTS, JUPYTER_NOTEBOOK, JUPYTER_LAB, KOTLIN_NOTEBOOK, UNKNOWN ->
29-
appendLine(UPDATING)
22+
DATALORE -> appendLine(UPDATING_DATALORE_URL)
23+
KOTLIN_NOTEBOOK -> appendLine(UPDATING_KOTLIN_NOTEBOOK_URL)
24+
else -> appendLine(UPDATING)
3025
}
3126
}

0 commit comments

Comments
 (0)