3 ms·
I see it's possible to embed it in jupyterlab, it seems to do a lot: * grid format * graph format * actual pivoting of data Is that right? It's using webasse
by zimablue 9y ago
I see it's possible to embed it in jupyterlab, it seems to do a lot:
* grid format
* graph format
* actual pivoting of data
Is that right?
It's using webassembly so in effect to do the pivot you must have created functions that exist in pandas?
Has anyone ported pandas to webassembly?
Is the grid editable? What are you using to create your output, html or canvas or something?
I realise I could look this stuff up but since you asked..
- texodus 9y agoI believe you'd need to port Python to WebAssembly to make much use of pandas - unaware of any projects attempting the former. The grid is just a plugin for the excellent [Hypergrid](https://github.com/openfin/fin-hypergrid https://github.com/openfin/fin-hypergrid), which is editable, but you'd need to manually push those edits back to the engine for now.
- zimablue 9y agowhich answers my other question, so it's canvas?
- texodus 9y agoThe frontend is actually pure JS/HTML - the WebAssembly part is just the data engine, and runs in a WebWorker for CPU isolation. Hypergrid is a canvas-based renderer, yes.
- Laaas 9y agoNuitka can compile Python to LLVM IR, which can be compiled into WASM, I think.
- fulafel 9y agoAs historical background: Python was one of the early emscripten asm.js experiments: https://github.com/kripken/emscripten/tree/master/tests/python https://github.com/kripken/emscripten/tree/master/tests/pyth...
- trevyn 9y agoWebAssembly code can talk to the rest of your JS (and therefore asm.js) code, right? So PyPy.js runs Python in the browser via asm.js: http://pypyjs.org/ http://pypyjs.org/ https://github.com/pypyjs/pypyjs https://github.com/pypyjs/pypyjs Livebook uses PyPy.js to make a Jupyter-like notebook that runs entirely in the browser, and includes pandas: https://livebook.inkandswitch.com https://livebook.inkandswitch.com https://github.com/inkandswitch/livebook https://github.com/inkandswitch/livebook And random plug for Observable in case you haven't seen it, a Jupyter-like Javascript environment, completely in the browser: https://observablehq.com https://observablehq.com