pygsti.report.notebookcell

Defines the NotebookCell class

Module Contents

Classes

NotebookCell

Struct representing either a code or markdown cell

class pygsti.report.notebookcell.NotebookCell(cell_type='code', source=None)

Bases: object

Struct representing either a code or markdown cell

Parameters
  • cell_type (str, optional) – Tag for the cell: either ‘code’ or ‘markdown’

  • source (list, optional) – A list of strings that are the lines of code/markdown in the cell.

to_json_dict(self)

Convert this cell to a json representation of a cell, using a default template

Returns

dict