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

org.jetbrains.jupyter.parser.notebook.CodeCell.kt Maven / Gradle / Ivy

The newest version!
package org.jetbrains.jupyter.parser.notebook

public class CodeCell(
    override val id: String?,
    override val metadata: CodeCellMetadata,
    override val source: String,
    /** Execution, display, or stream outputs. */
    public val outputs: List,
    /** The code cell's prompt number. Will be null if the cell has not been run. */
    public val executionCount: Long?
) : Cell() {

    override val type: Type get() = Type.CODE

    init {
        if (executionCount != null)
            require(executionCount >= 0L) { "execution_count < minimum 0 - $executionCount" }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy