Florian Magin
09/07/2020, 11:33 AMIkotlinKt.main
like the python code in jupyter would, but I call it from java code. This allows me to attach a jupyter-console to the kernel and access all the packages. But the classes inside the REPL do not share the static class variables with the java code that started the kotlin kernel via IkotlinKt.main
.
My guess is that this is accidental because this would never be relevant if you the kernel is supposed to be started by Python anyway. Does someone have a quick pointer of the relevant documentation or code concerning those internals?Ilya Muradyan
09/07/2020, 11:55 AMFlorian Magin
09/07/2020, 12:05 PMdeclare them in jupyter-lib project instead
Florian Magin
09/07/2020, 12:12 PMIkotlinKt.main
is essential for what I want to achieve. If this requires some changes in jupyter kotlin kernel I will look into or use some lower level methods to start the kernelIlya Muradyan
09/07/2020, 12:17 PM-classpath
argument of main. You may add your classes/jars to it to access symbols in them.Florian Magin
09/07/2020, 12:18 PMFlorian Magin
09/07/2020, 12:19 PMjupyter-console
the static variable will not be set