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

org.jetbrains.kotlinx.jupyter.api.outputs.Display.kt Maven / Gradle / Ivy

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

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

/**
 * Displays the given value in the notebook.
 *
 * @param value The value to display.
 * @param id An optional ID for the display.
 */
fun Notebook.display(
    value: Any,
    id: String? = null,
) {
    executionHost!!.display(value, id)
}

/**
 * Updates the display with the given value.
 *
 * @param value The value to update the display with.
 * @param id An optional identifier for the display to update.
 */
fun Notebook.updateDisplay(
    value: Any,
    id: String? = null,
) {
    executionHost!!.updateDisplay(value, id)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy