fiber-space / jupyter-kernel-jsr223

A JSR223 compliant Jupyter kernel implementation in Java
Apache License 2.0
61 stars 12 forks source link

Kernel doesn't work with script engines that don't support Compilable #14

Open bdw429s opened 6 years ago

bdw429s commented 6 years ago

Trying to use Lucee Server which is a JIT compiled JVM scripting language. The Compilable interface is documented as being optional, but this kernel seems to assume that all scripting engines will support it.

Exception in thread "Thread-6" java.lang.ClassCastException: lucee.runtime.jsr223.ScriptEngineImpl cannot be cast to javax.script.Compilable
        at org.jupyterkernel.console.InteractiveConsole.eval(InteractiveConsole.java:119)
        at org.jupyterkernel.kernel.Kernel.execute_request(Kernel.java:247)
        at org.jupyterkernel.kernel.Kernel$ExecuteRequestHandler.run(Kernel.java:64)