Skip to main content

Git in the JupyterLite terminal

· 5 min read
Ian Thomas
Scientific Software Developer at QuantStack
Sandrine Pataut
Scientific Software Developer at QuantStack
Johan Mabille
Technical Director at QuantStack

At QuantStack we are creating a complete ecosystem for running programming languages in a web browser based on JupyterLite and WebAssembly. You can already execute code in Python, C++, R and other languages interactively on desktop or mobile, without having to install software packages locally on your computer.

A complete ecosystem needs all the tools that are important for software development which includes version control. Hence we are pleased to announce git2cpp, a git implementation compiled to WebAssembly that runs entirely within the browser from the JupyterLite terminal. Here it is in action:

Train in Your Tab: PyTorch, JAX and ML Compilers in the Browser

· 26 min read
Scientific Software Developer at QuantStack

From eager execution to compiled CPU and WebGPU workloads—all inside JupyterLite.

Open a notebook, import PyTorch, define a model, train it, and try a few predictions. Then send the same computation to the GPU.

That is the experience we have been working towards with JupyterLite, WebAssembly and WebGPU. Python, the ML frameworks, their compilers and the runtime executing the generated programs all run inside the browser. The server delivers the application, packages, datasets and model weights, the computation happens on your machine.

This work builds on emscripten-forge, which provides conda packages for WebAssembly. We use it to distribute the Python runtime, ML frameworks, compiler toolchains and native dependencies that these notebooks need.

Today, we can share working notebooks for eager PyTorch, TorchInductor, TorchAX, JAX/XLA, and PyTorch compilation through Turbine and IREE. They cover CPU execution, WebGPU training, image processing, and pretrained models for vision and speech.

The part that excites me most is having the compiler available alongside the framework. Change a model or write a new function in a cell, and the browser can compile and execute that new computation too.

MNIST handwriting predictions before and after training

Comparing an untrained and trained MNIST classifier on the same handwritten digit, inside JupyterLite.

If you would like to start with the code, try the PyTorch CPU notebooks, object detection notebook, or MNIST CPU/WebGPU pair. The sections below explain how we got here.

Learning with Robots in Jupyter

· 11 min read
Florence Haudin
Scientific Software Engineer at QuantStack
Sylvain Corlay
CEO of QuantStack

What could be more rewarding for an aspiring programmer than watching their code come to life in a robot?

This is the idea that Seymour Papert, pioneer of computer science education, championed when he co-created the Logo programming language in 1967. Children used Logo to steer a "turtle", a small robot that rolled across the floor following simple commands such as FORWARD 100 or RIGHT 90. In his 1980 book Mindstorms: Children, Computers, and Powerful Ideas, he argued that computers could put powerful ideas in children's hands rather than drill facts into their heads.

Unfortunately, capable robots, such as an educational six-axis arm, cost a few thousand euros, which rules out one per student. Consumer products such as toys may be the answer. They are mass-produced, affordable, and built to meet strict safety standards, which makes them well suited to a classroom full of children. Papert understood this well: he began collaborating with Denmark's LEGO as early as 1985. As a construction kit, LEGO offered something no ready-made robot could: the same bricks can become a vehicle, a crane, or an animal, so children design the robot they then program. In 1998, LEGO paid him tribute by naming its new robotics line Mindstorms, after his book, bringing programmable bricks into countless homes.

Dyno and Dyno Lab: Macroeconomic Models on Notebook.link

· 7 min read
Pablo Winant
Associate Professor of Economics at ESCP Business School and Scientific Advisor at QuantStack

Writing, solving and simulating economic models in the browser​

The models used in macroeconomics are often small: a dozen equations and a few parameters. Running them is another matter. The standard tool, Dynare, is excellent, but it requires MATLAB or Octave and a preprocessor compiled for your platform. When I teach, getting this installed on every student's laptop often takes up most of the first session.

Dyno started as a way to solve these models with plain Python. Working with QuantStack as a scientific advisor, I have followed the progress of JupyterLite and emscripten-forge closely, and with Notebook.link Dyno can now be used without installing anything at all. The demo below opens a JupyterLab session with Dyno, its model editor and a set of example notebooks. All the computations run in your browser.

👉 Open the interactive demo or watch the video presentation:

Notebook.link now supports GitLab

· 4 min read
QuantStack
Scientific Software Computing

Your GitLab notebooks, just a prefix away​

Notebook.link and GitLabNotebook.link and GitLab

Since launch, Notebook.link has let you turn a GitHub repository into a live, runnable Jupyter environment with a single link. But a lot of scientific and teaching material doesn't live on GitHub: universities, research labs and open-source communities host plenty of it on GitLab.

Starting today, GitLab is a first-class Git provider on Notebook.link. Any public repository on gitlab.com can be opened, run and shared the same way as a GitHub repository, with the same environment handling, lock files and interface styles.

Shipping Complex Qt Applications in the Browser with emscripten-forge

· 5 min read
Matthias Meschede
Scientific Software Engineer at QuantStack

Shipping software efficiently means not rebuilding everything from scratch every time. You want to ship your app as a package, rely on a distribution system to handle dependencies, and share the burden of maintaining your stack with other projects that depend on it. That is the vision behind emscripten-forge, a general-purpose software distribution for WebAssembly.

Whether you're building a scientific library, a compiler, or a desktop application, emscripten-forge can be used to:

  • ship your software as a package for a general-purpose package manager (like apt or conda),
  • leverage shared dependencies: no need to rebuild what's already available,
  • benefit from browser caching: shared objects stay cached, reducing load times and bandwidth.

Qt Applications in the Browser​

Emscripten-forge has been used extensively to ship the open-source scientific computing stack (Python, R, etc.) alongside JupyterLite, and is progressively expanding to compiler stacks and console applications.

Emscripten-forge can now build & host Qt applications that run entirely in the browser. A compatible Qt6 desktop app can be built once for WASM, published as an ordinary conda package, and launched directly from the package repository, client-side, with no additional server behind it.

This also unlocks libraries that link against Qt, a common pattern for libraries that are attached to GUIs but can also be used independently. Once compiled, these libraries can now run interactively in the browser, for example with notebook.link. See pygplates on notebook.link for a live example using pygplates, a Python wrapper of the C++ library underlying the popular plate tectonics desktop application GPlates, which uses Qt extensively. Such GUI-free use is stable, fast, and unlocks many interesting use cases.

Running full Qt applications in the browser, including GUIs, may require custom patches, as well as case-by-case examination for compatibility (e.g., not all Qt subpackages are available), stability, and performance. But it's now a conceivable path for anyone who wants to take proven desktop software and make it dramatically more accessible without rewriting it.

You can try the following examples by clicking the links below:

(These links require a recent browser with JSPI support: Safari 27+, Chrome 137+, Firefox 153+.)

The last mile of a long road: faster NumPy in the browser

· 27 min read
Julien Jerphanion
Scientific Software Engineer at QuantStack
Matthias Meschede
Scientific Software Engineer at QuantStack
Ian Thomas
Scientific Software Developer at QuantStack

For a long time, running NumPy in the browser meant running it without an accelerated BLAS. Matrix multiplications fell back to plain loops (portable, but blind to cache and SIMD).

That just changed. The Emscripten-forge NumPy package now links OpenBLAS in WebAssembly, and at n = 1024 square np.matmul jumps to about 30.92× faster (float32) and 14.90× faster (float64). The next OpenBLAS release, already available as an experimental package on Emscripten-forge, with kernels contributed by QuantStack, pushes it further, and an optional Relaxed SIMD build adds another step on engines that support it.

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

· 9 min read
Scientific Software Developer at QuantStack

A JIT compiler—and its ecosystem—running entirely in the Web browser​

Scientists, students, and engineers use Jupyter notebooks to explore ideas interactively: write a small piece of code, execute it, inspect the result, and continue from there. Traditionally, every such notebook requires a Python process running on a server or on the user's machine.

JupyterLite changes this model. Its kernels run locally in the Web browser through WebAssembly, so a static website can provide a complete computational environment without allocating a server to every user. This makes notebooks easier and cheaper to share at scale, whether they are used for documentation, education, or interactive demonstrations.

There has, however, been an important piece missing from the browser-based scientific Python ecosystem: Numba.

Today, we are excited to share the first working version of the Numba JIT compiler running entirely in the browser with JupyterLite and emscripten-forge!

Numba benchmark in JupyterLite

Numba in action in JupyterLite, showing a 249× speedup over standard Python.

In this example, Numba delivers a roughly 250× speedup in WebAssembly, compared with about 90× natively. The larger relative gain makes Numba especially compelling in the browser, where bypassing Python interpreter overhead can have an even greater impact.

This means that a Python function can be transformed into Numba's Intermediate Representation (IR), typed, lowered to LLVM IR, compiled into WebAssembly, dynamically linked, and executed—all without a remote Python server.

Try it here: Numba and its ecosystem in JupyterLite.