Loading Packages — Version 0.21.3
Fleeting- Référence externe : https://pyodide.org/en/stable/usage/loading-packages.html#example
echo https://konubinix.eu$(
cat<<EOF|ipfa
<html>
<head>
<meta charset="utf-8" />
</head>
<body>
<script type="text/javascript" src="https://cdn.jsdelivr.net/pyodide/v0.21.3/full/pyodide.js"></script>
<script type="text/javascript">
async function main() {
let pyodide = await loadPyodide();
await pyodide.loadPackage("micropip");
const micropip = pyodide.pyimport("micropip");
await micropip.install("snowballstemmer");
await pyodide.runPython(`
import snowballstemmer
stemmer = snowballstemmer.stemmer('english')
print(stemmer.stemWords('go goes going gone'.split()))
`);
}
main();
</script>
</body>
</html>
EOF
)
https://konubinix.eu/ipfs/bafkreiaaqhejjsygwhoyzvivjwftbmst5zv5zjatr4mmefava4v6fbwbj4
did not work…