Kotlin / kotlin-jupyter

Kotlin kernel for Jupyter/IPython
Apache License 2.0
1.11k stars 107 forks source link

Question about the proper way to add custom classes and files #280

Closed permiakover closed 3 years ago

permiakover commented 3 years ago

Hello, I have some packages which I'd like to use in notebook, how could I load the properly, if the .kt and .java files located in the same folder of notebook?

altavir commented 3 years ago

You can't load kt and java files. You need them to be compiled. You need to compile them, pack them in the jar, and then load it according to documentation. I think you can use a kotlin scripting compiler for textual inclusion, but I won't recommend that.

permiakover commented 3 years ago

Got it, thanks for reply!