class Holst::JupyterCell
- Holst::JupyterCell
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
holst.crConstructors
Instance Method Summary
- #cell_type : String
- #cell_type=(cell_type : String)
- #execution_count : Int32 | Nil
- #execution_count=(execution_count : Int32 | Nil)
- #get_image : Bytes | Nil
- #has_data? : Bool
- #has_image? : Bool
- #id : String | Nil
- #id=(id : String | Nil)
- #is_code? : Bool
- #is_markdown? : Bool
- #metadata : JSON::Any
- #metadata=(metadata : JSON::Any)
- #outputs : Array(Hash(String, JSON::Any)) | Nil
- #outputs=(outputs : Array(Hash(String, JSON::Any)) | Nil)
- #source : Array(String) | Nil
- #source=(source : Array(String) | Nil)
-
#type : CellType
Returns the cell's type as a
CellType
, either Markdown or code
Constructor Detail
Instance Method Detail
Returns the cell's type as a CellType
, either Markdown or code
Example:
notebook.cells[0].type # => Holst::CellType::MARKDOWN
notebook.cells[1].type # => Holst::CellType::CODE