We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 449dcbd commit 4900a61Copy full SHA for 4900a61
index.html
@@ -11,9 +11,17 @@
11
await pyodide.loadPackage("micropip");
12
const micropip = pyodide.pyimport("micropip");
13
await micropip.install('dist/healpy-0.1.0-py3-none-any.whl');
14
+ await micropip.install('matplotlib');
15
pyodide.runPython(`
- import healpy
16
- print(healpy.__version__)
+import healpy as hp
17
+import matplotlib.pyplot as plt
18
+import matplotlib
19
+matplotlib.use("module://matplotlib.backends.html5_canvas_backend")
20
+m = hp.read_map(
21
+ "test/data/wmap_band_iqumap_r9_7yr_W_v4_udgraded32_masked_smoothed10deg_fortran.fits"
22
+)
23
+hp.projview(m, coord=["G"], projection_type="mollweide")
24
+plt.show()
25
`);
26
}
27
main();
0 commit comments