     
            // Update CodeMirror theme
            editorInstances.forEach(editor => {
                editor.setOption('theme', newTheme === 'dark' ? 'material-darker' : 'default');
            });
        }
        
        // Run all cells
        async function runAllCells() {
            const cells = document.querySelectorAll('.cell-type-code');
            for (const cell of cells) {
                await runCell(cell.dataset.cellId);
                await new Promise(resolve => setTimeout(reso