              // Stop all running cells
                    document.querySelectorAll('.cell-running').forEach(cell => {
                        cell.classList.remove('cell-running');
                    });
                }
            } catch (error) {
                console.error('Failed to interrupt kernel:', error);
            }
        }
        
        // Utility functions
        function escapeHtml(text) {
            const div = document.createElement('div');
            div.textContent = text