class Holst::JupyterCell

Included Modules

Defined in:

holst.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def cell_type : String #

[View source]
def cell_type=(cell_type : String) #

[View source]
def execution_count : Int32 | Nil #

[View source]
def execution_count=(execution_count : Int32 | Nil) #

[View source]
def get_image : Bytes | Nil #

[View source]
def has_data? : Bool #

[View source]
def has_image? : Bool #

[View source]
def id : String | Nil #

[View source]
def id=(id : String | Nil) #

[View source]
def is_code? : Bool #

[View source]
def is_markdown? : Bool #

[View source]
def metadata : JSON::Any #

[View source]
def metadata=(metadata : JSON::Any) #

[View source]
def outputs : Array(Hash(String, JSON::Any)) | Nil #

[View source]
def outputs=(outputs : Array(Hash(String, JSON::Any)) | Nil) #

[View source]
def source : Array(String) | Nil #

[View source]
def source=(source : Array(String) | Nil) #

[View source]
def type : CellType #

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

[View source]