This page demonstrates the NoteCell component functionality without requiring a full Slidev setup.
Double-click the code area to simulate execution
print("Hello from Jupyter!")
print("This is an interactive code cell")
# Simple calculation
result = 2 + 2
print(f"2 + 2 = {result}")
Code and output side by side
import matplotlib.pyplot as plt
import numpy as np
# Generate sample data
x = np.linspace(0, 10, 100)
y = np.sin(x)
# Create plot
plt.figure(figsize=(8, 4))
plt.plot(x, y, 'b-', linewidth=2)
plt.title('Sine Wave')
plt.show()