We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2a1b93 commit 5a03a5fCopy full SHA for 5a03a5f
index.html
@@ -15,12 +15,14 @@
15
const micropip = pyodide.pyimport("micropip");
16
await micropip.install('dist/healpy-0.1.0-py3-none-any.whl');
17
await micropip.install('matplotlib');
18
+ const version = document.getElementById("healpyversion");
19
+ version.textContent = pyodide.runPython("import healpy as hp; hp.__version__");
20
+
21
pyodide.runPython(`
22
import matplotlib
23
matplotlib.use("module://matplotlib_pyodide.wasm_backend")
24
import healpy as hp
-import js
-js.document.healpyversion.textContent = hp.__version__
25
26
import matplotlib.pyplot as plt
27
28
# m = hp.read_map(
0 commit comments