Open holgerbrandl opened 2 years ago
Interesting. The cause of this phenomenon is that currently kernel does not generate top level objects, instead all its contents are inside a genreated class like Script-something. So it could not be imported. It is just another case if favor of changing this behavior.
Yes, fully qualified name for ShiftID
is actually Line_X.ShiftID
(X
is some number). And it's all related to redesigning of scripting.
Thanks for the clarification.
Is there any timeline for improving the scripting model? Like 1.7 :-)? It's actually hard to teach kotlin via jupyter - at least for me - with such non-intuitive limitations wrt central language constructs.
Expected: Since this is legit in kt and kts (clearly with the order of declaration and import being flipped), I'd assume this should to work also in a jupyter context. Observed It fails with an error![image](https://user-images.githubusercontent.com/200952/149629006-404e27f2-1437-4134-85a2-8284211c416a.png)
Kotlin kernel v. 0.11.0.45, Kotlin v. 1.6.20-dev-6372