Skip to content

Commit

Permalink
micropip
Browse files Browse the repository at this point in the history
  • Loading branch information
zonca committed Jul 17, 2024
1 parent 4f45bc9 commit 7da3762
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
<script type="text/javascript">
async function main(){
let pyodide = await loadPyodide();
console.log(pyodide.runPython("import micropip; micropip.install('dist/healpy.whl'); import healpy; healpy.__version__"));

await pyodide.loadPackage("micropip");
const micropip = pyodide.pyimport("micropip");
await micropip.install('dist/healpy.whl');
pyodide.runPython(`
import healpy
print(healpy.__version__)
`);
}
main();
</script>
Expand Down

0 comments on commit 7da3762

Please sign in to comment.