Earlier quoted context omitted.
> "Part of an effort to make a Jupytr notebook-like environment without relying on server side code." So there won't be any server side code, you'd just be downloading the entire Python stack and dependencies every time you want to use this through your browser. This time it will be WASM though, instead of x86/x64/pyc. That we can, doesn't mean that we should.
I guess we need an in-browser package management like npm?
The Python scientific stack, compiled to WebAssembly
41–50 of 54 posts
Re: The Python scientific stack, compiled to WebAssembly
#42Huh I am getting ``` TypeError: window[s] is undefined ``` with firefox.
I'd love to get to the bottom of that.
Re: The Python scientific stack, compiled to WebAssembly
#43What happens to all of the C code in Numpy, and the calls to external libraries like BLAS?
In particular, does this mean Javascript has access to Numpy? Sounds unbelievable, but would be extremely cool.
Re: The Python scientific stack, compiled to WebAssembly
#44Earlier quoted context omitted.
C can compile to WASM, but I have no clue about external tools like BLAS. I'd assume that things like Numpy are able to work without tools like BLAS, but you might also be able to compile the essential ones to WASM as well.
NumPy can work without libraries like BLAS or LAPACK, but it will be sloooooooooow. There are C versions of those libraries however, maybe they are using those?
Re: The Python scientific stack, compiled to WebAssembly
#45Coming soon [...] Plotting using D3 from Python Wouldn't Bokeh make more sense? I'd be very interested in a serverless Bokeh that didn't force me to ditch Python, for example.
More recently, pyodide has grown full matplotlib support. See, for example, https://iodide.io/pyodide-demo/matplotlib-sideload.html?side...
Re: The Python scientific stack, compiled to WebAssembly
#46I benchmarked this recently. It comes in at 4-10x slower than cpython for random typical use cases on my machine, which is not too shabby at all. The author also states that numpy is slower than it should be due to lack of support for BLAS at this time. The real impressive feat to me isn't hosting jupyter in the browser. It's access to a reasonably fast implementation of numpy in the browser which smokes native JS co…
Re: The Python scientific stack, compiled to WebAssembly
#47I benchmarked this recently. It comes in at 4-10x slower than cpython for random typical use cases on my machine, which is not too shabby at all. The author also states that numpy is slower than it should be due to lack of support for BLAS at this time. The real impressive feat to me isn't hosting jupyter in the browser. It's access to a reasonably fast implementation of numpy in the browser which smokes native JS co…
I can't believe I'm saying this but it would be neat to have a browser native BLAS, or absent that perhaps cross-compiled to WASM from a RUST implementation or something! Makes me think of all the demos like the tensorflow playground (dunno if all that happens in the browser or not).
Re: The Python scientific stack, compiled to WebAssembly
#48Earlier quoted context omitted.
> "Part of an effort to make a Jupytr notebook-like environment without relying on server side code." So there won't be any server side code, you'd just be downloading the entire Python stack and dependencies every time you want to use this through your browser. This time it will be WASM though, instead of x86/x64/pyc. That we can, doesn't mean that we should.
It would work on a Chromebook and a iPad also. And yes I could pay for a Jupiter notebook hosted on some instance but I dont want to.
Re: The Python scientific stack, compiled to WebAssembly
#49Earlier quoted context omitted.
Do they have Docker? Jupyter maintains a few docker images with various parts of the scientific stack.
How and why would they have docker and not python. Docker's like 10 rungs up the skill ladder.
Re: The Python scientific stack, compiled to WebAssembly
#50This is great. Many times I wanted to showcase to colleagues who don't use Python how things would work in Python, but they don't have either Python or Jupyter installed. So I had to run Jupyter server in my own environment and give them access to it. This is quite an inconvenience as well as a security risk. Having a completely server-less Python/Jupyter environment should make this kind of showcasing much easier.
You could also use a Jupyter notebook uploaded to colab.research.google.com
(Typical disclaimer, I'm a dev on the azure notebooks team; we just try to solve exactly the scenario GP was asking so I would be remiss to not throw our hat in the ring)