pub enum Output {
ExecuteResult {
execution_count: Option<u32>,
data: MimeBundle,
metadata: IndexMap<String, Value>,
},
DisplayData {
data: MimeBundle,
metadata: IndexMap<String, Value>,
},
Stream {
name: StreamName,
text: MultilineString,
},
Error {
ename: String,
evalue: String,
traceback: Vec<String>,
},
}Expand description
Output from executing a code cell.
Jupyter notebooks support four types of outputs:
ExecuteResult: The result of evaluating the last expressionDisplayData: Rich display output (plots, HTML, etc.)Stream: Text output to stdout or stderrError: Exception/error information
Variants§
ExecuteResult
Result of evaluating the last expression in a cell.
Fields
§
execution_count: Option<u32>Execution count matching the cell’s execution count. Can be None if cleaned or if the cell hasn’t been executed.
§
data: MimeBundleMIME bundle of output representations.
DisplayData
Rich display output (e.g., plots, HTML, images).
Fields
§
data: MimeBundleMIME bundle of output representations.
Stream
Text output to stdout or stderr.
Error
Error/exception output.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Output
impl<'de> Deserialize<'de> for Output
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Output
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more