Package moa.tasks.ipynb
Class CodeCellBuilder
- java.lang.Object
-
- moa.tasks.ipynb.NotebookCellBuilder
-
- moa.tasks.ipynb.CodeCellBuilder
-
public class CodeCellBuilder extends NotebookCellBuilder
Implement a code cell
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
cellType()
Gets the cell-type string of this type of cell.protected Map<String,String>
fields()
Defines the fields of this cell and their contents.-
Methods inherited from class moa.tasks.ipynb.NotebookCellBuilder
addSource, build
-
-
-
-
Method Detail
-
cellType
protected String cellType()
Description copied from class:NotebookCellBuilder
Gets the cell-type string of this type of cell.- Specified by:
cellType
in classNotebookCellBuilder
- Returns:
- The cell-type string.
-
fields
protected Map<String,String> fields()
Description copied from class:NotebookCellBuilder
Defines the fields of this cell and their contents. Does not include the "source" field, as this is handled separately.- Overrides:
fields
in classNotebookCellBuilder
- Returns:
- A map from field name to field contents.
-
-