padreati / rapaio-jupyter-kernel

Java jupyter kernel
MIT License
53 stars 7 forks source link

Alter CLASSPATH when starting kernel #73

Closed rgemulla closed 3 weeks ago

rgemulla commented 3 weeks ago

Is it possible to alter the class path before starting the kernel, thereby avoiding notebook imports via magic commands?

(This has been possible in ijava by setting environment variable IJAVA_CLASSPATH in kernel.json.)

padreati commented 3 weeks ago

Looking into adding something like this in kernel. I think I can do it by the end of the week.

padreati commented 3 weeks ago

I have created an environment variable RJK_CLASSPATH which follows a similar semantic. I hope it works in all cases (never tested on Windows, but it was implemented without OS dependent stuff). Additionally for the glob syntax I mostly used what Java already provides with some additional tricks. An example can be found in KERNEL.md from the git home.

rgemulla commented 3 weeks ago

Works flawlessly for me, thanks!