jax in the browser on WebGPU next please?
https://jax-js.com/
Numba in the Browser: Unlocking a New Scientific Python Stack in JupyterLite
11–17 of 17 posts
Re: Numba in the Browser: Unlocking a New Scientific Python Stack in JupyterLite
#12Re: Numba in the Browser: Unlocking a New Scientific Python Stack in JupyterLite
#13I don't understand the article. It stresses that you don't need to run code on a Python server any more.
That assumes that the only option for scientists is to interact with the browser. Scientists used to be able to write Fortran and didn't rely on a crappy web interface. That was of course when they did science instead of blogging about tools.
Re: Numba in the Browser: Unlocking a New Scientific Python Stack in JupyterLite
#14This is awesome! For those here not familiar with Numba, it helps bridge that performance vs ergonomics tradeoff that's always existed when you reach for python over a lower level but faster lang like C or C++. Sure you could write Cython but then you have to have a build step and make wheels for every platform you and python version. Sure numpy has gotten faster over the years but you're still hampered by the GIL. N…
Re: Numba in the Browser: Unlocking a New Scientific Python Stack in JupyterLite
#15Emscripten-forge looks like 32-bit. I don't understand the article. It stresses that you don't need to run code on a Python server any more. That assumes that the only option for scientists is to interact with the browser. Scientists used to be able to write Fortran and didn't rely on a crappy web interface. That was of course when they did science instead of blogging about tools.
It's not the only option but jupyter notebooks are excellent for (at least) quick prototyping, data visualisation, literate programming and exploring ideas. I write plenty of Fortran and C++ and I still reach for notebooks when appropriate. In discussing with a non-technical, scientist friend, she pointed out that existing notebooks can be used and edited by folk even if they don't know python that well.
At the very least I see this particular tech as enabling more science by removing the operational challenge of running a jupyter server.
These tools take nothing from those who want to write fortran to do their science but make computation more accessible to those who don't.
Re: Numba in the Browser: Unlocking a New Scientific Python Stack in JupyterLite
#16This is awesome! For those here not familiar with Numba, it helps bridge that performance vs ergonomics tradeoff that's always existed when you reach for python over a lower level but faster lang like C or C++. Sure you could write Cython but then you have to have a build step and make wheels for every platform you and python version. Sure numpy has gotten faster over the years but you're still hampered by the GIL. N…
I run some Jupyter notebooks against a local Postgres realestate db to do statistical analysis. Could I use this to just run it on a compute host without having to manually set up and activate a venv?
I'd stick with the venv if it's heavy duty crunching and you do it often.
However, if this is a one off or doesn't need heavy compute, and you don't mind waiting a little longer, use the notebook.link.
Re: Numba in the Browser: Unlocking a New Scientific Python Stack in JupyterLite
#17jax in the browser on WebGPU next please?
I'm not super familiar with JAX though.