Skip to content

Commit

Permalink
healpy version
Browse files Browse the repository at this point in the history
  • Loading branch information
zonca committed Jul 18, 2024
1 parent a97f6e7 commit aab0300
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
<script src="https://cdn.jsdelivr.net/pyodide/v0.26.1/full/pyodide.js"></script>
</head>
<body>
<p><code>healpy</code> version: <code id=healpyversion></code></p>

<script type="text/javascript">
const healpyversion = document.getElementById("healpyversion");
async function main(){
let pyodide = await loadPyodide();

Expand All @@ -16,6 +19,8 @@
import matplotlib
matplotlib.use("module://matplotlib_pyodide.wasm_backend")
import healpy as hp
import js
js.document.healpyversion = hp.__version__
import matplotlib.pyplot as plt
m = hp.read_map(
Expand Down

0 comments on commit aab0300

Please sign in to comment.