I’ve been having a host of odd issues as I try to play around with d3-force in observable notebooks.
I’ve tracked down how to reproduce one especially odd guy I’ve been running into, but can’t tell exactly what the underlying issue is. and would love to understand what is going on.
I have a notebook that explores the issue here:
But I’ll give the tl;dr here too:
- I set up a simulation with a faulty set of nodes (due to a syntax error)
- I fix the error, but the simulation with the faulty data appears to continue running, throwing an error in the console with each time step
Visually, this results in all of my nodes being stacked on top of each other
- If I refresh after fixing the error, the simulation works as expected, but I’m unclear why the refresh fixes this, and would love to not have to refresh to fix it.