Skip to content

Instantly share code, notes, and snippets.

@axil
Last active August 27, 2022 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save axil/8cc25cb15a81970d5070121924185459 to your computer and use it in GitHub Desktop.
Save axil/8cc25cb15a81970d5070121924185459 to your computer and use it in GitHub Desktop.
load_numpy
%%javascript
async function prepare() {
await window.pyodide.loadPackage("numpy");
alert(window.pyodide.runPython(`
import numpy as np
np.array([3, 4]).sum()
`));
}
prepare();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment