Interface Output
- All Known Implementing Classes:
DisplayDataOutput, ErrorOutput, ExecuteResultOutput, StreamOutput
public sealed interface Output
permits StreamOutput, DisplayDataOutput, ExecuteResultOutput, ErrorOutput
A single output produced by executing a
CodeCell. The output type
is determined by the output_type field and can be one of:
"stream"— stdout/stderr text (StreamOutput)"display_data"— rich display data (DisplayDataOutput)"execute_result"— the result of evaluating an expression (ExecuteResultOutput)"error"— an exception raised during execution (ErrorOutput)
-
Method Summary
-
Method Details
-
outputType
String outputType()Returns the output type identifier.- Returns:
- one of
"stream","display_data","execute_result", or"error".
-