org.jetbrains.kotlinx.jupyter.ext.HtmlRendering.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-jupyter-lib-ext Show documentation
Show all versions of kotlin-jupyter-lib-ext Show documentation
Extended functionality for Kotlin kernel
package org.jetbrains.kotlinx.jupyter.ext
import org.jetbrains.kotlinx.jupyter.api.MimeTypedResult
import org.jetbrains.kotlinx.jupyter.api.htmlResult
import java.io.File
data class HTMLAttr(val name: String, val value: String)
@Suppress("FunctionName")
fun HTML(
file: File,
isolated: Boolean = false,
): MimeTypedResult {
val text = file.readText()
return htmlResult(text, isolated)
}