Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Browsers became extremely slow with jupyter lab

I was working in jupyter lab on a server through a FF 72 for 3 days and it was normal. But after I cleared all cell outputs it instantly became very very slow.

Mouse reaction, keyboard reaction times reach 2-3 seconds. Scrolling is more or less okay, but clicking, typing are way too slow for normal work.

The notebook itself is not big (maybe 50 cells, cells are also not big), only python text, no graphs.

I've found this jupyterlab issue 1639 but it doesn't suggest any solution. Tried Chromium - even worse.

Any known solutions? Workarounds?

like image 473
DDR Avatar asked Nov 16 '22 06:11

DDR


1 Answers

Not saying this is the answer for everyone but I too was having the same problem of a laggy jupyterlab notebook where mine was specific to keyboard/typing lag. It was driving me nuts.

My setup is a 2 core proc and 4GB RAM (MacOS), Safari - all running the current OS.

My notebook is at 2640 lines.

I started trying different settings in Jupyterlab (e.g., stopped the kernel, turned off autosave..). Nothing worked.

Then I turned my eye toward web browsers and that was my culprit. It turns out Opera, for me, is the snappiest when working with Jupyterlab in my setup. Might want to give it a try.

I have zero lag now.

like image 52
spizzi Avatar answered Nov 17 '22 20:11

spizzi