In the past, I could use `Class.forName("jupyter.k...
# datascience
h
In the past, I could use
Class.forName("jupyter.kotlin.KotlinContext")
to test if my code is running within the jupyter kernel. But with the improved integration via
kotlin-jupyter-api-0.11.0-45.jar
this test does no longer work, because the jar ships with the
KotlinContext
. How could I now perform such a test?
r
cc @Ilya Muradyan
i
For now, you can use any class from the main kernel artifact for this purpose, i.e.
org.jetbrains.kotlinx.jupyter.ReplForJupyter
. But it's a good thing to add to API, please file an issue if you can
h
Thanks for the work-around. Filed as ticket as well under https://github.com/Kotlin/kotlin-jupyter/issues/352