# Scoping problems (probably a Newbie error)

**URL:** <https://talk.observablehq.com/t/scoping-problems-probably-a-newbie-error/4132>\
**Category:** Help\
**Created:** [November 10, 2020, 7:54pm UTC](https://talk.observablehq.com/t/scoping-problems-probably-a-newbie-error/4132 "2020-11-10T19:54:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![severo](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/severo/32/786_2.png) [@severo](https://talk.observablehq.com/u/severo)\
**Post date:** [November 10, 2020, 8:34pm UTC](https://talk.observablehq.com/t/scoping-problems-probably-a-newbie-error/4132/2 "2020-11-10T20:34:34Z")

</div>

One way to directly have what you want is using the `mutable` keyword - [https://observablehq.com/@observablehq/introduction-to-mutable-state](https://observablehq.com/@observablehq/introduction-to-mutable-state). But it’s not very recommended, and another way could be to create an .update() method in your svg chart, and call it when the input option changes a value, without direct dependency between the input cell and the svg cell.

See [A bit confused about 'mutable', etc](https://talk.observablehq.com/t/a-bit-confused-about-mutable-etc/721) for more about the different ways of synchronizing the states of two “views”

See also another thread about the same problem: [how to control cell updating in response to value changes in dependency cells?](https://talk.observablehq.com/t/how-to-control-cell-updating-in-response-to-value-changes-in-dependency-cells/4037/6)

---

_[View the full topic](https://talk.observablehq.com/t/scoping-problems-probably-a-newbie-error/4132)._
