    const cellHtml = createCellHtml(cellId, 'code');
            
            document.getElementById('notebook-cells').insertAdjacentHTML('beforeend', cellHtml);
            initializeEditor(cellId);
            selectCell(cellId);
        }
        
        function addCellAfter(afterCellId) {
            const cellId = `cell-${Date.now()}`;
            const cellHtml = createCellHtml(cellId, 'code');
            
            const afterCell = document.querySelector(`[data-cell-id="${afterCellId}"]`);
   