# Making some cells non-reactive

**URL:** <https://talk.observablehq.com/t/making-some-cells-non-reactive/644>\
**Category:** Help\
**Created:** [April 15, 2018, 11:25am UTC](https://talk.observablehq.com/t/making-some-cells-non-reactive/644 "2018-04-15T11:25:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tvirot](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/tvirot/32/488_2.png) [@tvirot](https://talk.observablehq.com/u/tvirot)\
**Post date:** [April 15, 2018, 11:25am UTC](https://talk.observablehq.com/t/making-some-cells-non-reactive/644/1 "2018-04-15T11:25:19Z")

</div>

Is there a way to make some cells non-reactive? In particular, I have cells that depend on other cells and require a lot of computational power, so I don’t want them to run automatically as other cells get updated. Instead, I want to creat separate buttons to trigger each cell to run.

Thanks!

---

<div class="post-metadata">

**Author:** ![tvirot](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/tvirot/32/488_2.png) [@tvirot](https://talk.observablehq.com/u/tvirot)\
**Post date:** [April 15, 2018, 9:02pm UTC](https://talk.observablehq.com/t/making-some-cells-non-reactive/644/2 "2018-04-15T21:02:43Z")

</div>

I came up with a solution using mutables:  
[https://beta.observablehq.com/@tvirot/non-reactive-control-flow](https://beta.observablehq.com/@tvirot/non-reactive-control-flow)

Not sure if there is a better way to do this.

---

<div class="post-metadata">

**Author:** ![jashkenas](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/jashkenas/32/1778_2.png) [@jashkenas](https://talk.observablehq.com/u/jashkenas)\
**Post date:** [April 16, 2018, 4:43pm UTC](https://talk.observablehq.com/t/making-some-cells-non-reactive/644/3 "2018-04-16T16:43:27Z")

</div>

Using mutable values, in the way that you’re doing in that notebook, is a great way to accomplish what you’re looking for.

You can read directly from the HTML slider values, at compute time, or you can use the `mutable` keyword.

When you write `mutable x = 1`, it defines two different ways of accessing the variable: `x`, which is reactive, and will cause the cell to re-evaluate when the value is set, and `mutable x`, which is non-reactive.
