Gallery · Live data

A weather briefing in three cells

An HTTP cell calls a public forecast API, C# shapes the JSON, and Python charts the week. Three cells from REST endpoint to picture, no SDK in sight.

weather-briefing.verso HTTP · C# · Python · 5 cells Read-only preview Download

A weather briefing in three cells

No SDK, no client library, no glue code. An HTTP cell calls a public forecast API using plain .http syntax, the response body lands in the shared variable store as httpResponse, a C# cell shapes it with System.Text.Json, and Python draws the week. This page was baked from a real call, so the chart below is a real forecast from the day this notebook last ran.

[1]
http
1GET https://api.open-meteo.com/v1/forecast?latitude=47.6062&longitude=-122.3321&daily=temperature_2m_max,temperature_2m_min&temperature_unit=fahrenheit&timezone=America%2FLos_Angeles&forecast_days=7
2Accept: application/json
✓completed
Sending GET https://api.open-meteo.com/v1/forecast?latitude=47.6062&longitude=-122.3321&daily=temperature_2m_max,temperature_2m_min&temperature_unit=fahrenheit&timezone=America%2FLos_Angeles&forecast_days=7...
200 OK606 ms
Response Headers (4)
DateSat, 04 Jul 2026 21:33:12 GMT
Transfer-Encodingchunked
Connectionkeep-alive
Content-Typeapplication/json; charset=utf-8
{
  "latitude": 47.595562,
  "longitude": -122.32443,
  "generationtime_ms": 0.05352497100830078,
  "utc_offset_seconds": -25200,
  "timezone": "America/Los_Angeles",
  "timezone_abbreviation": "GMT-7",
  "elevation": 59.0,
  "daily_units": {
    "time": "iso8601",
    "temperature_2m_max": "°F",
    "temperature_2m_min": "°F"
  },
  "daily": {
    "time": [
      "2026-07-04",
      "2026-07-05",
      "2026-07-06",
      "2026-07-07",
      "2026-07-08",
      "2026-07-09",
      "2026-07-10"
    ],
    "temperature_2m_max": [
      67.8,
      71.9,
      80.2,
      85.2,
      68.6,
      75.3,
      80.0
    ],
    "temperature_2m_min": [
      55.5,
      52.5,
      52.5,
      51.9,
      57.8,
      54.1,
      50.2
    ]
  }
}
[2]
codeC#
1using System.Text.Json;
2
3var doc = JsonDocument.Parse(Variables.Get<string>("httpResponse"));
4var daily = doc.RootElement.GetProperty("daily");
5
6var days = new List<string>();
7var highs = new List<double>();
8var lows = new List<double>();
9foreach (var d in daily.GetProperty("time").EnumerateArray())
10 days.Add(DateTime.Parse(d.GetString()!).ToString("ddd"));
11foreach (var t in daily.GetProperty("temperature_2m_max").EnumerateArray())
12 highs.Add(t.GetDouble());
13foreach (var t in daily.GetProperty("temperature_2m_min").EnumerateArray())
14 lows.Add(t.GetDouble());
15
16var warmest = days[highs.IndexOf(highs.Max())];
17$"Seattle, next 7 days: warmest on {warmest} at {highs.Max():F0}°F."
✓completed
Seattle, next 7 days: warmest on Tue at 85°F.
[3]
codePython
1import matplotlib.pyplot as plt
2
3# days, highs, and lows were parsed by the C# cell above
4labels = [str(d) for d in days]
5hi = [float(t) for t in highs]
6lo = [float(t) for t in lows]
7
8fig, ax = plt.subplots(figsize=(7.2, 3.6))
9ax.fill_between(labels, lo, hi, color="#0078d4", alpha=0.18)
10ax.plot(labels, hi, marker="o", color="#0078d4", label="High")
11ax.plot(labels, lo, marker="o", color="#57534a", label="Low")
12ax.set_title("Seattle, 7-day forecast (°F)")
13ax.legend(frameon=False)
14ax.spines[["top", "right"]].set_visible(False)
15plt.tight_layout()
16plt.show()
✓completed

Point it somewhere else

Change the latitude and longitude in the HTTP cell, rerun, and the whole page follows. The same pattern works for any JSON API: internal services, GitHub, finance feeds. If a request needs secrets, keep them in @variables at the top of the cell rather than in the URL.

Run it yourself

Nothing on this page is executable; the outputs were baked in by a real run. Download the notebook and it runs anywhere Verso does: VS Code, the browser, or the terminal.

dotnet tool install --global Verso.Cli
verso serve weather-briefing.verso

What this shows

An HTTP cell calls a public forecast API, C# shapes the JSON, and Python charts the week. Three cells from REST endpoint to picture, no SDK in sight.

Every language in this notebook reads and writes the same variable store, so a value produced in one cell is simply there in the next, whatever the language.