# Numba Runs in the Browser: 250x Speedup in JupyterLite

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

> Hacker News story 49269451 · language: en · submitted 2026-08-12
> Web version: https://zeli.app/story/49269451
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 68 · by [xalfotis](<https://news.ycombinator.com/user?id=xalfotis>) · 💬 16
[original](<https://notebook.link/blog/numba-in-the-browser/>) · [HN discussion](<https://news.ycombinator.com/item?id=49269451>)

## Summary

JupyterLite brings a full scientific Python stack to the browser via WebAssembly, but Numba was missing. Now, QuantStack has made it work: Numba's JIT compiler pipeline—from Python bytecode to LLVM IR to WebAssembly—runs entirely client-side, delivering a 249x speedup over standard Python. This unlocks PyTensor, PyMC, and other Numba-dependent libraries in JupyterLite, with packages available via emscripten-forge.

## Key quote

> The larger relative gain makes Numba especially compelling in the browser, where bypassing Python interpreter overhead can have an even greater impact.

## HN discussion (16 comments)

### [momojo](<https://news.ycombinator.com/item?id=49317231>)

> 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.
>
> Numba is a little magic because you get to write stuff that feels like numpy, but get literal bytecode perf.
>
> BUT there's a cost to this, which u learned the hard way when I imported a color map extension for matplotlib recently.
>
> I thought i was going to be importing a couple megabytes at most. But Numba+llvmlite alone is almost 100MB!
>
> This might be a drop in the bucket in some applications but for a color map library that has only two hot paths that need to be JITed, it's excessive.
>
> Overall though, love this achievement, and i love what's being done for in-browser (aka local-first) scientific computing!

### [rossant](<https://news.ycombinator.com/item?id=49317130>)

> Congrats for a serious engineering achievement!
>
> I had experimented with a similar idea in an infinitely more primitive way more than ten years ago (https://cyrille.rossant.net/numpy-browser-llvm/). I'm glad to see so much progress since then.

### [lmc](<https://news.ycombinator.com/item?id=49317104>)

> Are there some benchmarks of the browser vs non-browser version?
>
> I.e., what are the absolute numbers behind
>
> \> Numba delivers a roughly 250× speedup in WebAssembly, compared with about 90× natively.

---

## Cite

- Page: https://zeli.app/story/49269451
- Date: 2026-08-12
- Source: notebook.link (https://notebook.link/blog/numba-in-the-browser/)
- Hacker News: https://news.ycombinator.com/item?id=49269451

## Other languages

- zh: https://zeli.app/zh/story/49269451 · markdown: https://zeli.app/zh/story/49269451.md
- ja: https://zeli.app/ja/story/49269451 · markdown: https://zeli.app/ja/story/49269451.md
- ko: https://zeli.app/ko/story/49269451 · markdown: https://zeli.app/ko/story/49269451.md
- de: https://zeli.app/de/story/49269451 · markdown: https://zeli.app/de/story/49269451.md
- es: https://zeli.app/es/story/49269451 · markdown: https://zeli.app/es/story/49269451.md
