pangeo-data / jupyter-earth

Jupyter meets the Earth: combining research use cases in geosciences with technical developments within the Jupyter and Pangeo ecosystems.
https://jupytearth.org
Creative Commons Zero v1.0 Universal
28 stars 6 forks source link

JupyterLab kernel lagging - notes from debugging it #90

Closed consideRatio closed 2 years ago

consideRatio commented 2 years ago

@whyjz and @espg observed a bug that we can reproduce quite easily now, and I've diagnosed in some more detail. This is the bug.

  1. Whenever we have loaded something big into memory, in this case, a 38 MB .pickle object, the CPU spikes and remain spiked even after the cell execution is completed.
  2. We observe that the next cell execution is delayed, and then happens fast.
  3. We observe that the CPU goes down to 0 again after a while
  4. We observe that when we run another print("hello world") it goes back to 100% CPU again

jupyterlab-something-is-wrong

Narrowing the problem

My current guess is that some JuptyerLab extension is messing things up for us.

How to debug this?

I'm not sure how to debug what goes wrong, we don't have an error. I would like to disable a JupyterLab extension one at the time and see if things resolve, but how to do that?

consideRatio commented 2 years ago

Nailed it! This is caused by the lckr_jupyterlab_variableinspector extension: https://github.com/lckr/jupyterlab-variableInspector/issues/166#issuecomment-949014468

I'll uninstall it and close this issue.