https://kotlinlang.org logo
Title
d

Domenic

06/01/2020, 6:54 AM
I've got a kotlin project using Bazel as the build system. I'm struggling to figure out how to get my library code/files to be visible in the jupyter-kotlin notebook. I've tried
@file:DependsOn()
with a path to the .jar file which works so long as there are no external dependencies in that file. Is there an example of how to work with local IDE code in a kotlin notebook?
a

altavir

06/01/2020, 7:37 AM
You have to either give a path to a jar or a maven artifact.
d

Domenic

06/01/2020, 12:22 PM
Thank you, I was able to generate a deployment .jar which contained all src and dependencies then referenced this and it worked. Appreciate the help!
a

Anatoly Nikitin

06/02/2020, 1:02 PM
'DependsOn' doesn't resolve jar dependencies, so they should be either bundled in a single jar, or added one-by-one by separate 'DependsOn' statements
d

Domenic

06/07/2020, 7:51 AM
Thanks for the help. I've pretty much landed on using Kotlin for data processing and Python for data analysis. I'll use Parquet files as the intermediary between these two languages. So far this is working well.
a

altavir

06/07/2020, 10:34 AM
@Domenic if you have some feedback about using Parquet, it would be interesting. I was searching for a good multi-language communication format.