News for hackers. Stuff that matters.
Re:Perspective: Streaming pivot visualization via WebAssembly by zimablue on Tuesday February 06, 2018 @11:37AM (#16317372)
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..

Re:Perspective: Streaming pivot visualization via WebAssembly by texodus on Tuesday February 06, 2018 @11:40AM (#16317397)
I 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), which is editable, but you'd need to manually push those edits back to the engine for now.

Re:Perspective: Streaming pivot visualization via WebAssembly by trevyn on Tuesday February 06, 2018 @02:03PM (#16318560)
WebAssembly 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/

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://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

Re:Perspective: Streaming pivot visualization via WebAssembly by fulafel on Tuesday February 06, 2018 @01:42PM (#16318353)
As historical background: Python was one of the early emscripten asm.js experiments: https://github.com/kripken/emscripten/tree/master/tests/pyth...
Re:Perspective: Streaming pivot visualization via WebAssembly by Laaas on Tuesday February 06, 2018 @12:45PM (#16317890)
Nuitka can compile Python to LLVM IR, which can be compiled into WASM, I think.
Re:Perspective: Streaming pivot visualization via WebAssembly by zimablue on Tuesday February 06, 2018 @11:48AM (#16317450)
which answers my other question, so it's canvas?
Re:Perspective: Streaming pivot visualization via WebAssembly by texodus on Tuesday February 06, 2018 @12:10PM (#16317619)
The 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.