livebook/assets/js/lib/notebook.js

14 lines
328 B
JavaScript
Raw Normal View History

/**
* Checks if the given cell type is eligible for evaluation.
*/
export function isEvaluable(cellType) {
return ["code", "smart"].includes(cellType);
}
/**
* Checks if the given cell type has primary editable editor.
*/
export function isDirectlyEditable(cellType) {
return ["markdown", "code"].includes(cellType);
}