Open AngryMaciek opened 1 year ago
Hi! It's only possible to import compiled modules and classes for now. In Kotlin Notebook intellij plugin you can access the source code of the project too
This issue is not really addressed, I don't understand why is this being closed.
%%bash
magic cells to call compilation of an external module; that one which I would later like to load? If not - how do I achieve this?Sorry, I didn't notice your question...
Is there a way to install kotlin
compiler in conda
environment? I want to compile the script by run (inside conda
env with kotlin-jupyter
installed):
kotlinc -script custom.kts -include-runtime -d example.jar
but i got a message that
Command 'kotlinc' not found
Why don't you want to simply use kotlin command-line compiler? https://kotlinlang.org/docs/command-line.html#install-the-compiler
kotlin-jupyter is a Kotlin kernel for jupyter, it doesn't separately install the compiler
Thanks for the link! I can download the compiler manually, indeed. I think that solves it :)
Im a rather newbie in Kotlin but I was wondering if there is a mechanism to import classes, functions I have in an external text file (not in the same directory)? Would be a very useful feature as defining hundreds of code lines in a notebook impairs brevity, better to put them out in a separate file and just "load" in the nb, right?