Example: an interactive experiment post

2026-11-09 · meta

This post is a template. The data below is synthetic: made-up discharge curves for a 5 kWh pack, not a real measurement.

Setup

Each post is a folder: index.mdx for the text, plus whatever data files and photos belong to it. Put a photo next to it and reference it like this: ![Test rig](./rig.jpg). Astro resizes and optimises it at build time.

Results

Drag the slider to highlight each load. The chart’s JavaScript only loads when it scrolls into view; everything else on this page is plain HTML.

464850520200400Time (min)Pack voltage (V)500 W

Normal Markdown still works everywhere else, including tables:

Load (W) Runtime (approx.)
500 ~9.9 h
2000 ~2.4 h

and code:

import pandas as pd
df = pd.read_csv("discharge.csv")
print(df.groupby("load_w").minutes.max())