"""Replay the saved calculation. Its method and units are recorded in JSON."""
import json
from pathlib import Path
from atomli.visualize import Plot

payload = json.loads(Path("line.json").read_text())
provenance = payload.pop("provenance")
figure = Plot(**payload)
figure.write_html("figure.html")
