Notebook keep freezing

I cannot edit the chart cell anymore in this notebook The Dhamma Citadel: Navigating the Four Noble Truths / Cittadhammo | Observable without the whole notebook freezing. I have restart everything and have only this one notebook live. I have tried safe mode as well. Nothing can do.

I have noticed it takes longer and longer in other noteooks as well to get the cells to compute. My interenet connection is good

:

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.

This made the trick. I can work in an incognito window, even when logged in, and it works like a charm.

But in my main session, look at the perf in the devtools, when i try to edit the chart cell:

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.

Thank you again for your help,

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.

Thanks again and be well