diff --git a/index.html b/index.html
index 5a2dbee3..7a6a8f8e 100644
--- a/index.html
+++ b/index.html
@@ -11,9 +11,17 @@
await pyodide.loadPackage("micropip");
const micropip = pyodide.pyimport("micropip");
await micropip.install('dist/healpy-0.1.0-py3-none-any.whl');
+ await micropip.install('matplotlib');
pyodide.runPython(`
- import healpy
- print(healpy.__version__)
+import healpy as hp
+import matplotlib.pyplot as plt
+import matplotlib
+matplotlib.use("module://matplotlib.backends.html5_canvas_backend")
+m = hp.read_map(
+ "test/data/wmap_band_iqumap_r9_7yr_W_v4_udgraded32_masked_smoothed10deg_fortran.fits"
+)
+hp.projview(m, coord=["G"], projection_type="mollweide")
+plt.show()
`);
}
main();