THE NOTEBOOK THAT RERUNS ITSELF

Every Jupyter user has run a cell out of order, gotten a result, and then not been able to reproduce it after restarting the kernel. I have done it more times than I want to admit. The notebook on screen reads top to bottom. The kernel’s memory does not care what order the cells sit in on the page, only what order you clicked Run in, and those two orders drift apart within about ten minutes of real editing. Delete a cell and the variable it defined is still sitting in the kernel until you restart, so the notebook you saved is not actually the notebook anyone else, including future you, can reproduce by opening the file and reading it in order.
Pluto.jl takes the opposite position: it will not let that gap exist.
Cells as a dependency graph
In Pluto, every cell’s source gets parsed for two things: which variable names it defines and which names it references. From that, Pluto builds a dependency graph across the whole notebook. Edit a cell and Pluto reruns that cell and every cell downstream of it in the graph, and nothing else, regardless of where any of those cells happen to sit on the page. A cell at the bottom of the screen can define a variable a cell at the top depends on, and it still works, because screen order was never the thing that mattered. Execution order is derived from the graph every time, not from the order you happened to click. There is no restart-and-run-all ritual, because the graph is recomputed on every change.
A slider that is also a variable
@bind is the part of Pluto that made me sit up. It links a browser widget directly to a Julia variable:
@bind x Slider(1:100)
Drag the slider and x changes, and every cell downstream of x in the dependency graph reruns automatically, live, in the browser. No callback function to register, no event handler you write by hand. The binding is the wiring. And the notebook file itself carries its own exact package environment, so opening someone’s .jl notebook a year later reproduces the versions they were actually running against, not whatever happens to be installed on your machine that day. Pluto.jl reached 1.0 this year.
The @bind parser
I wrote PlutoBindParser for Flexible Julia to read @bind expressions out of a cell and turn known PlutoUI widgets, Slider, Scrubbable, NumberField, CheckBox, TextField, Select, Radio, into real IDE controls instead of plain text. Any widget the parser does not recognize falls back to a generic text field, so a custom or less common PlutoUI widget degrades to a raw box you type into rather than the slider or checkbox it actually is. And the part that splits a widget’s arguments apart is a regex-based bracket-depth counter, not a real parse of Julia syntax. The comment sitting right above it in the source says as much: “Quick and dirty: split on commas at depth 0.” It works for every widget call I tested it against.
Recompute cost
A cheap-looking edit can trigger an expensive recompute, because Pluto reruns everything downstream of what changed, not just the line you touched. Edit a comment in a cell that also loads a large dataset, or trains a model, and every one of those steps reruns along with it if anything downstream depends on that cell’s output. That suits exploratory numerical work. It is the wrong trade for a notebook built around a long data load, a real training run, or anything that talks to the outside world (a database write, an API call, a file append) in a cell you keep editing nearby. Jupyter’s manual execution model is better for that kind of expensive or side-effecting step.
Flexible Julia’s Pluto support is on the JetBrains Marketplace.
| Education | EBS Business School, SFSU, HSG |
| Experience | 20 Years Enterprise Systems |
| Built | Scipio ERP - ERP & Ecommerce System |
| Author | "Start/Up - Set the net on fire" |
| JetBrains | 5x Plugins Published |
| Languages | Java, Python, JS, TS, Rust, Go, Swift, PHP |
| Frontend | React, Vue, Angular, HTML/CSS |
| Databases | PostgreSQL, MySQL, MongoDB |
| Caching | Redis, Memcached |
| Enterprise | L'Oréal, Amadeus, Konica Minolta, Orange |
| Digital | 1&1 Internet, Sedo.com, Creditsafe |
| Public | DRK, Kanton Basel, Aktion Mensch, Börsenverein |