Kotlin / kotlin-jupyter

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

Automatically load stdlib extensions with approprieate JDK #358

Closed altavir closed 2 years ago

altavir commented 2 years ago

Currently, only baseline stdlib is loaded automatically when notebook starts. Since kernel knows which JDK is used, it would make sense to load JDK7/JDK8/etc extensions automatically.

In particular, If foun out that I do not have access to Path extensions introduced in stdlib-jdk7 in basic notebook. It is doubly surprising as gradle setup does that automatically nowadays.

ileasile commented 2 years ago

I don't like the idea of adding automatically something you maybe will not ever use... But I'll add a method that will allow to add these extensions in one line, it will work like this.

image
altavir commented 2 years ago

The thing is that Gradle already does that. So it is about consistency.