Skip to content

Commit 02b02f3

Browse files
committed
added enableExperimentalCsv setting to solve jupyter dependency issue with new experimental module
1 parent 9b0d3d4 commit 02b02f3

File tree

1 file changed

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

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ internal class Integration(private val notebook: Notebook, private val options:
6969

7070
val version = options["v"]
7171

72+
// TODO temporary settings while these experimental modules are being developed
73+
private val enableExperimentalCsv = options["enableExperimentalCsv"]
74+
7275
private fun KotlinKernelHost.updateImportDataSchemaVariable(
7376
importDataSchema: ImportDataSchema,
7477
property: KProperty<*>,
@@ -152,6 +155,10 @@ internal class Integration(private val notebook: Notebook, private val options:
152155

153156
override fun Builder.onLoaded() {
154157
if (version != null) {
158+
if (enableExperimentalCsv?.toBoolean() == true) {
159+
println("Enabling experimental CSV module: dataframe-csv")
160+
dependencies("org.jetbrains.kotlinx:dataframe-csv:$version")
161+
}
155162
dependencies(
156163
"org.jetbrains.kotlinx:dataframe-excel:$version",
157164
"org.jetbrains.kotlinx:dataframe-jdbc:$version",

0 commit comments

Comments
 (0)