Live data from Hacker News

Numba in the Browser: Unlocking a New Scientific Python Stack in JupyterLite

notebook.link

11–17 of 17 posts

Re: Numba in the Browser: Unlocking a New Scientific Python Stack in JupyterLite

#11

jax in the browser on WebGPU next please?

https://jax-js.com/

I’m aware of Jax-js. It’s a different beast: an [incomplete last I checked] port of jax for JS, not something you can run your, e.g. jax-dependent marimo notebook or pyodide against

Re: Numba in the Browser: Unlocking a New Scientific Python Stack in JupyterLite

#13
Emscripten-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.

Re: Numba in the Browser: Unlocking a New Scientific Python Stack in JupyterLite

#14
post #7

This 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?

Re: Numba in the Browser: Unlocking a New Scientific Python Stack in JupyterLite

#15

Emscripten-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.

I find your take a little lacking in nuance...

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

#16
post #14
post #7

This 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?

Good question.

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.

Post reply on HN