[Framework examples →](../)

# Python data loader to generate PNG

View live: <https://observablehq.observablehq.cloud/framework-example-loader-python-to-png/>

This Observable Framework example demonstrates how to write a Python data loader that outputs a PNG to standard out. The data loader generates a choropleth map of birth rates in one Illinois county using [matplotlib](https://matplotlib.org/). The data loader lives in [`src/data/birth-statistics.png.py`](./src/data/birth-statistics.png.py).
