Interactive Tutorial

AI authored to showcase ironpad capabilities.

Welcome to ironpad! 🦀

ironpad is an interactive Rust notebook that compiles each cell to WebAssembly and runs it in your browser.

Getting Started

  • Each code cell contains Rust code that gets compiled and executed
  • The last expression in a cell becomes its output
  • Outputs are automatically passed to later cells as typed variables
Simple Expression

Cell Variables

Each code cell's output is available in later cells as a typed variable:

  • cell0, cell1, ... — by cell index (only counting code cells)
  • last — alias for the most recent code cell's output

The variables are strongly typed — the compiler knows their Rust types!

Using Variables

Rich Output

Cells can output more than just text. Use Html(...) for HTML or Svg(...) for SVG graphics. You can even combine multiple outputs using tuples!

HTML Output