MCPcopy Create free account
hub / github.com/bigcode-project/jupytercoder / disableCellCode

Function disableCellCode

src/utility.js:461–467  ·  view source on GitHub ↗
(textarea)

Source from the content-addressed store, hash-verified

459
460// Hide all code for the active cell
461const disableCellCode = (textarea) => {
462 const activeCell = textarea.parentElement.parentElement
463 const codeMirrorLines = activeCell.querySelectorAll('.CodeMirror-code pre');
464 for (let i = 0; i < codeMirrorLines.length; i++) {
465 codeMirrorLines[i].style.display = "none"
466 }
467}
468
469// Restore all code that hides the current cell
470utility.enableCellCode = (textarea) => {

Callers 1

viewDiffCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected