All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.kotlinx.jupyter.api.libraries.Constructing.kt Maven / Gradle / Ivy

There is a newer version: 0.12.0-335
Show newest version
package org.jetbrains.kotlinx.jupyter.api.libraries

import org.jetbrains.kotlinx.jupyter.api.Notebook

fun createLibrary(
    notebook: Notebook,
    builder: JupyterIntegration.Builder.() -> Unit,
): LibraryDefinition {
    val o =
        object : JupyterIntegration() {
            override fun Builder.onLoaded() {
                builder()
            }
        }
    return o.getDefinitions(notebook).single()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy