Kotlin / kotlin-jupyter

Kotlin kernel for Jupyter/IPython
Apache License 2.0
1.1k stars 106 forks source link

Package level functions can not be used #13

Closed holgerbrandl closed 6 years ago

holgerbrandl commented 6 years ago

Example (from a a file src/main/kotlin/de/mpicbg/scicomp/kip/Util.kt and pulled into the jupyter repl using @DependsOnMaven):

fun hello() = println("hello from in here")

It does not seem possible to do wildcard import for it, not to call it directly: image

apatrida commented 6 years ago

This is likely an outdated problem that is fixed in later Kotlin resolvers. And update to current dependencies might fix this, so let's recheck after that.

holgerbrandl commented 6 years ago

Sounds great to me. Looking forward to the updated release!

holgerbrandl commented 6 years ago

I've tested against current master, with

@file:DependsOnMaven("de.mpicbg.scicomp:krangl:0.7")

import krangl.*

irisData.glimpse()

and in deed the bug is fixed now. Thanks!