Published
Edited
Jun 27, 2019
1 fork
3 stars
Also listed in…
Pyodide
Insert cell
Insert cell
pyodide = {
window.languagePluginUrl = "//pyodide.cdn.iodide.io/pyodide.js";
return new Promise((resolve) => {
require('//pyodide.cdn.iodide.io/pyodide.js').catch(() => {
window.languagePluginLoader.then(() => {
resolve(window.pyodide);
});
});
});
}
Insert cell
Insert cell
foo = {
pyodide.runPython(`foo = 42`)
return pyodide.pyimport('foo')
}
Insert cell
foo
Insert cell
Insert cell
memory = pyodide._module.wasmMemory
Insert cell
DOM.download(
new Blob([memory.buffer], { type: 'application/octet-binary;charset=utf-8' }),
`pyodide-${Date.now()}.wasm`
)
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more