Skip to content

Commit 7f4f999

Browse files
committed
added min kernel version feature
1 parent 6059583 commit 7f4f999

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,16 @@ import kotlin.reflect.KClass
5555
import kotlin.reflect.KProperty
5656
import kotlin.reflect.full.isSubtypeOf
5757

58+
/** Users will get an error if their Kotlin Jupyter kernel is older than this version. */
59+
private const val MIN_KERNEL_VERSION = "0.11.0.198"
60+
5861
internal val newDataSchemas = mutableListOf<KClass<*>>()
5962

6063
internal class Integration(private val notebook: Notebook, private val options: MutableMap<String, String?>) :
6164
JupyterIntegration() {
6265

6366
override fun Builder.onLoaded() {
67+
setMinimalKernelVersion(MIN_KERNEL_VERSION)
6468
val codeGen = ReplCodeGenerator.create()
6569
val config = JupyterConfiguration()
6670

0 commit comments

Comments
 (0)