Can Kotlin REPL have `@DependsOn` and `@Repository...
# announcements
a
Can Kotlin REPL have
@DependsOn
and
@Repository
as well? Seems like I can only have that when running a script file (
*.main.kts
) ;o
Seems like Jupyter kernel has this ability, why not repl blob thinking upside down
Created SO qn regarding this with some debugging: https://stackoverflow.com/q/65774409/11377112 🙂 Btw can we have
pip
like dependency-manager for Kotlin-scripts and/or Kotlin-REPLs?
e
kscript --interactive can do this
a
I guess Kotlin's jupyter kernel has this ability even though that is same as REPL https://github.com/Kotlin/kotlin-jupyter#dependencies-resolving-annotations
@ephemient I guess kscript is exclusively for linux 😅
and works only on
kotlin-jvm
Well I tried Kotlin's official jupyter notebook and it works well as REPL agent, it even has auto-completion ability and feature to run any cell at any point of time, so I guess its a next generation REPL for kotlin 🙂 K
e
at least until Jupyter gets replaced by Pluto…