org.jetbrains.kotlinx.jupyter.magics.LibrariesAwareAbstractMagicsHandler.kt Maven / Gradle / Ivy
The newest version!
package org.jetbrains.kotlinx.jupyter.magics
import org.jetbrains.kotlinx.jupyter.api.libraries.LibraryDefinitionProducer
abstract class LibrariesAwareAbstractMagicsHandler : LibrariesAwareMagicsHandler, AbstractMagicsHandler() {
protected val newLibraries: MutableList = mutableListOf()
override fun getLibraries(): List {
val librariesCopy = newLibraries.toList()
newLibraries.clear()
return librariesCopy
}
}