Kotlin / kotlin-jupyter

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

Order of %use statements should not matter for class loading #354

Closed holgerbrandl closed 2 years ago

holgerbrandl commented 2 years ago

Currently, the order in which %use is used to load libraries seems to impact the class-loader's ability to resolve classes.

Example Workbook: https://github.com/holgerbrandl/kravis/blob/6ecb786dbd1b5c138d93d48366ccefd395223055/misc/import_order.ipynb

image

When flipping the import order it works correctly image

Used kernel version: Kotlin kernel v. 0.11.0.45, Kotlin v. 1.6.20-dev-6372