Is it possible to toggle a cell on/off?

I use Livebook for experimentation, sort of like REPL-driven development. I find many times when I would like to disable a cell without deleting it.

For example, let’s say I have a cell near the top which does some mutations. But later on, I want to break it down and test some elements incrementally. I still want my “how this should work” example to exist at the top, but I don’t want to run it. I’d like to disable it so my subsequent cells can run.

Yes, I could move the cell down, down, down, down some number of times; or I could select all within the cell and comment out. But I’m hoping for a simple on/off checkbox. If the cell is disabled, then it will be skipped when a lower cell is run from a fresh state.

2 Likes