https://kotlinlang.org logo
Title
t

TheMrCodes

02/05/2021, 12:50 PM
Maybe I missed something big but... is there any support for import project local Kotlin Classes from other Files into a jupyter notebook? Found nothing online regarding this.
h

holgerbrandl

02/05/2021, 1:12 PM
Works for me out of the box:
t

TheMrCodes

02/05/2021, 1:14 PM
sry i meant from other files inside the same folder
h

holgerbrandl

02/05/2021, 1:15 PM
Good question, I guess this more relates to #scripting because the question could be rephrased to how to import an existing source file via scripting API.
a

altavir

02/05/2021, 1:44 PM
You can easily import jar file via
@file:DependsOn
,but I am not sure about kts. For ipynb probably not and it is better that way.