DisplayResult

Display result that may be converted to JSON for display_data kernel response

Inheritors

Properties

Link copied to clipboard
open val id: String?

Unique id that may be used for updating display data

Functions

Link copied to clipboard
open override fun render(notebook: Notebook): DisplayResult

Renders display result, generally should return this

Link copied to clipboard
open fun toJson(additionalMetadata: JsonObject = Json.EMPTY): JsonObject

abstract fun toJson(additionalMetadata: JsonObject = Json.EMPTY, overrideId: String? = null): JsonObject

Converts display data to JSON object for display_data response

Link copied to clipboard
fun DisplayResult?.toJson(): JsonObject

Convenience method for converting nullable DisplayResult to JSON

Link copied to clipboard