yId(`output-${cellId}`);
            if (!outputDiv) return;
            
            outputDiv.style.display = 'block';
            
            if (result.success) {
                // Check for different output types
                if (result.dataframe) {
                    outputDiv.innerHTML = `<div class="dataframe-output">${formatDataFrame(result.dataframe)}</div>`;
                } else if (result.html) {
                    outputDiv.innerHTML = `<div class="output-html">${result.html}</div>`;
 