Dumitru Preguza
11/13/2025, 1:59 PM%use dataframe
val telecomsxchange = importDataSchema(
"<https://destinations-api.telecomsxchange.com/openapi.json>"
)
/* gives:
Failed to read data schema from <https://destinations-api.telecomsxchange.com/openapi.json>: kotlin.NotImplementedError: An operation is not implemented: Not yet implementedDumitru Preguza
11/13/2025, 2:11 PMFailed to read data schema from <https://destinations-api.telecomsxchange.com/openapi.json>: kotlin.NotImplementedError: An operation is not implemented: Not yet implemented
When I go to impl. I see this code:
is org.jetbrains.kotlinx.dataframe.impl.codeGen.CodeGenerationReadResult.Error -> {
DISPLAY("Failed to read data schema from ${'$'}url: ${'$'}{codeGenResult.reason}")
}
Why the string interpolation works if ${'$'} is used instead of just $ ?Jolan Rensen [JB]
11/13/2025, 2:15 PMDumitru Preguza
11/13/2025, 2:17 PMJolan Rensen [JB]
11/13/2025, 2:17 PMimportDataSchema() shouldn't even be available when this argument is not supplied π
I'll make an issue to hide it when %use dataframe(enableExperimentalOpenApi=true) is not supplied. Or provide a useful exceptionJolan Rensen [JB]
11/13/2025, 2:20 PM"importDataSchema() did not find any supported type-only data schema generation providers (SupportedCodeGenerationFormat). If you were looking for OpenAPI 3.0.0 types, set %use dataframe(..., enableExperimentalOpenApi=true)."` ... that's weirdDumitru Preguza
11/13/2025, 2:21 PMJolan Rensen [JB]
11/13/2025, 2:22 PMJolan Rensen [JB]
11/13/2025, 2:22 PMDumitru Preguza
11/13/2025, 2:23 PMactually, it should have displayedNo it prints:). If you were looking for OpenAPI 3.0.0 types, set"importDataSchema() did not find any supported type-only data schema generation providers (SupportedCodeGenerationFormat."` ... that's weird%use dataframe(..., enableExperimentalOpenApi=true)
Failed to read data schema from <https://destinations-api.telecomsxchange.com/openapi.json>: kotlin.NotImplementedError: An operation is not implemented: Not yet implementedDumitru Preguza
11/13/2025, 2:23 PMActually, it was considered "stable", but OpenAPI has moved to 3.1.0 and merged with JSONSchemaOh ok
Jolan Rensen [JB]
11/13/2025, 2:24 PMJolan Rensen [JB]
11/13/2025, 2:24 PMDumitru Preguza
11/13/2025, 2:25 PMJolan Rensen [JB]
11/13/2025, 2:26 PMDumitru Preguza
11/13/2025, 2:27 PMJolan Rensen [JB]
11/13/2025, 2:27 PMWhy the string interpolation works if ${'$'} is used instead of just $ ?Because the whole thing is in a String, which is passed to the Kotlin Jupyter kernel to be run on the client side π The
$ only needs to be evaluated at the user-side inside the notebook, not in the code here.
We could use multi-dollar string interpolation nowJolan Rensen [JB]
11/13/2025, 2:30 PMJolan Rensen [JB]
11/13/2025, 2:31 PMDumitru Preguza
11/13/2025, 2:31 PMDumitru Preguza
11/13/2025, 2:37 PMJolan Rensen [JB]
11/13/2025, 2:37 PMDumitru Preguza
11/13/2025, 2:38 PMDumitru Preguza
11/13/2025, 2:39 PMJolan Rensen [JB]
11/13/2025, 2:41 PMMetricsKeyValue.readJson() and have it be typed as expected.Jolan Rensen [JB]
11/13/2025, 2:42 PMJolan Rensen [JB]
11/13/2025, 2:42 PM