Skip to content

States

All the fiddles in this page (except the last one) run on the same kernel.

The following runs in a stateless environment.

The following two fiddles run on the same state. Check what happens when you run them after the previous fiddle.

The following fiddle runs on a different state.

The states used can only be restored by reloading the page.

Note that a state lives in a kernel and cannot be shared between different kernels (because of potential concurrency issues). For example, state S1\mathrm{S}_1 in kernel K1\mathcal{K}_1 and different from state S1\mathrm{S}_1 in kernel K2\mathcal{K}_2.

Finally, fiddles sharing a kernel but not the state will still share changes to module variables and the filesystem anyway. If that is not desired, you can use a different kernel in stateless mode, which still shares module variables and the filesystem between executions.

For a totally isolated and stateless experience you can restart the kernel on each run as follows. This, however, is much less efficient.

Which fiddles in this page are not\textbf{not} isolated\emph{isolated}?

python by Icons Producer from the Noun Project. © 2026 Me. Built with VitePress.