livebook/assets/js/lib/notebook.js
Jonatan Kłosko 015b44fb72
Add support for Python cells (#2936)
Co-authored-by: José Valim <jose.valim@dashbit.co>
2025-02-18 14:28:29 +01:00

13 lines
328 B
JavaScript

/**
* 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);
}