Hi @asg017 ,
i have tried the Interpreter by interpreting existing variable name but that would throw RuntimeError. Please take a look on the following code that i have added into interpreter-test.js line 39...
await interpret.cell("b = 4", main, observer);
t.equals(await main.value("b"), 4, "b are updated from 2 to 4");
I think Interpreter should have ability to prevent variable duplication in observablehq runtime.
I know you have done this outside runtime. Based on my investigation, we can check existing runtime variable using runtime_scope.