This notebook showcases Bengal's full rendering pipeline for notebooks:
- Markdown — Headings, lists, and inline math like x^2 + y^2 = z^2
- Code — Syntax-highlighted with Rosettes
- Outputs — Stream and execute_result rendered as HTML
import math
print(f"Pi to 4 decimals: {math.pi:.4f}")
Pi to 4 decimals: 3.1416
Block Math
Block equations work in markdown cells:
$E = mc^2$
$\sum_{i=1}^n i = \frac{n(n+1)}{2}$
def greet(name: str) -> str:
return f"Hello, {name}!"
greet("Bengal")
'Hello, Bengal!'