The notebook works fine for me, so I suspect that it may be another one that’s causing the freeze (see below). I’d try the following:
Open the notebook in a private window and check whether it freezes there as well.
In Chrome, open Window > Task manager, then sort by CPU to discover the tabs or processes that are at (or close to) 100%.
A few things to keep in mind:
At least in Chrome multiple tabs in the same subdomain share the same process. For Observable that means any notebooks published by the same team account, as their sandbox iframes share the same subdomain.
If you see form elements and can interact with them, then you’re notebook isn’t frozen. More likely a resource might take some time to load. In that case check the network tab in your dev tools for pending requests.
If your notebook keeps getting slower and slower while you interact with it, then you’re likely registering new event handlers on every cell invalidation without unregistering the old ones.
The performance within a cell’s editor should be unaffected by anything happening within the notebook itself. If you experience a slowdown there then your browser might be trying to render too many elements.
I have clear all the cache and start again. It keep freezing in my main session when i try to edit the chart cell. (it does seems to work a bit better, but not much)
I will keep inverstigating, the task manager seems ok
Having devtools open, especially with the Elements panel focused, will always negatively impact performance. You might want to check if keeping devtools closed makes a difference, and only keep the Console panel focused if you need access to the logs.
If you still see performance issues then you may also want to review your active extensions, in case any of them interface with the page in a way that causes problems.
As a last resort you could
add a checkbox to optionally hide the chart so that you can keep it from getting rendered while you’re editing and only preview when you need to verify your changes,
only show a low resolution PNG preview instead of rendering the actual SVG.
I actually have all the checkboxes above the chart that I can deactivate, but the problem persisted in the past. I have now deactivated some extension and tried on other computer, and it works as well now. Your initial guess to try in an incognito window was the best hint.