Skip to content

Commit

Permalink
matplotlib wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
zonca committed Jul 18, 2024
1 parent 4900a61 commit a97f6e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
await micropip.install('dist/healpy-0.1.0-py3-none-any.whl');
await micropip.install('matplotlib');
pyodide.runPython(`
import matplotlib
matplotlib.use("module://matplotlib_pyodide.wasm_backend")
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"
)
Expand Down

0 comments on commit a97f6e7

Please sign in to comment.