If I understand what you’re asking for, you can use the import ... with ...
syntax for this. Here’s a quick fork of your master notebook which is more interactive:
See also this nice demo by @mbostock (made in response to another post on the forums):