I seem to be having more luck with jupyter notebook
than jupyter lab
.
I shutdown the lab and start notebook with:
sudo systemctl stop jupyter
jupyter notebook
It takes a long time to save my notebook because of all the images, but it eventually succeeds and the kernel no longer seems to hang because of it.
The problem is likely related to this issue: https://github.com/jupyterlab/jupyterlab/issues/5327