jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.74k stars 4.98k forks source link

Sometimes scrolling stops working #4797

Open benthayer opened 5 years ago

benthayer commented 5 years ago

I work in a Jupyter notebook nearly all day and leave the server running locally on my laptop for days at a time. Sometimes if I go to the notebook after a while, the scrolling doesn't work. If I click a different tab and then click back into the notebook tab, the scrolling works again.

I have no idea about reproducability or how to get relevant logging. The console isn't producing anything except things that don't seem to be correlated. I'll close my laptop and when I log back in, the connections get restarted and scrolling still works, but here are the logs from today anyways. I would be willing to make the effort to get the relevant logs if there are any and someone tells me how.

The only thing I can think of is a js process that is needed for scrolling falling asleep and clicking on the tab wakes it up. It could also be after my laptop is locked/asleep for some period of time and then the process sleeps, but I do other things for a while and just don't notice that it had actually been frozen the entire time. This issue seems to happen maybe once a day, but I couldn't say for sure.

I know this isn't terribly helpful, but I thought I'd bring it up and offer to make retrieve logs in case I can be useful.

Another thing is that the notebook that I'm currently working on is looooooooooong. There normally aren't problems, and I'm not sure if this is the only notebook that has these issues because I simply don't remember how long it's been happening for or which notebooks I've been working on, but I thought I'd mention it in case it turns out to be relevant.

Also, a note on the logging below, I have several notebooks open, so if that affects the interpretation, I thought I'd make it known, but I really don't know. xD

[I 17:05:01.485 NotebookApp] Kernel started: 05eec9e0-55a8-41f0-8d10-b2721e449fd7
[I 17:05:04.675 NotebookApp] Adapting to protocol v5.1 for kernel 05eec9e0-55a8-41f0-8d10-b2721e449fd7
[I 18:28:14.599 NotebookApp] Starting buffering for e86680af-4808-4694-834b-e07f80c9788e:e27498f6581c4d008014f15ffe38ef96
[I 18:28:14.599 NotebookApp] Starting buffering for a48aeda7-7987-408f-98f2-8d746aad9d55:0befb7b444f64b08ab217dba321b6dc4
[I 18:28:14.615 NotebookApp] Starting buffering for ba431ddc-e509-46fc-8dbe-4591adb864f1:a8234202fbb9454b9fcb29c4711757f6
[I 18:28:14.615 NotebookApp] Starting buffering for 05eec9e0-55a8-41f0-8d10-b2721e449fd7:f5293226d4244078883c182e001ef95b
[I 18:30:07.805 NotebookApp] Adapting to protocol v5.1 for kernel e86680af-4808-4694-834b-e07f80c9788e
[I 18:30:07.813 NotebookApp] Restoring connection for e86680af-4808-4694-834b-e07f80c9788e:e27498f6581c4d008014f15ffe38ef96
[I 18:30:08.655 NotebookApp] Adapting to protocol v5.1 for kernel ba431ddc-e509-46fc-8dbe-4591adb864f1
[I 18:30:08.656 NotebookApp] Restoring connection for ba431ddc-e509-46fc-8dbe-4591adb864f1:a8234202fbb9454b9fcb29c4711757f6
[I 18:30:08.672 NotebookApp] Adapting to protocol v5.1 for kernel a48aeda7-7987-408f-98f2-8d746aad9d55
[I 18:30:08.673 NotebookApp] Restoring connection for a48aeda7-7987-408f-98f2-8d746aad9d55:0befb7b444f64b08ab217dba321b6dc4
[I 18:30:08.689 NotebookApp] Adapting to protocol v5.1 for kernel 05eec9e0-55a8-41f0-8d10-b2721e449fd7
[I 18:30:08.691 NotebookApp] Restoring connection for 05eec9e0-55a8-41f0-8d10-b2721e449fd7:f5293226d4244078883c182e001ef95b
> jupyter --version
jupyter core     : 4.5.0
jupyter-notebook : 5.7.8
qtconsole        : 4.5.1
ipython          : 7.5.0
ipykernel        : 5.1.1
jupyter client   : 5.2.4
jupyter lab      : not installed
nbconvert        : 5.5.0
ipywidgets       : 7.4.2
nbformat         : 4.4.0
traitlets        : 4.3.2
>python --version
Python 3.7.3

OS Name: Microsoft Windows 10 Pro OS Version: 10.0.17134 N/A Build 17134

Chrome Version 75.0.3770.142 (Official Build) (64-bit)

benthayer commented 5 years ago

Same version and stuff as before, but this just happened when my notebook stopped scrolling

This was produced by the notebook server:

[W 14:51:04.010 NotebookApp] 404 GET /static/components/preact/preact.min.js.map (::1) 35.90ms referer=None
[W 14:51:04.025 NotebookApp] 404 GET /static/components/proptypes/index.js.map (::1) 9.97ms referer=None
[W 14:51:04.029 NotebookApp] 404 GET /static/components/preact-compat/preact-compat.min.js.map (::1) 10.97ms referer=None

And this by the browser console

WebSocket connection to 'ws://localhost:8888/api/kernels/827d4a3e-c676-4bfb-b1f7-1626e9affe6c/channels?session_id=0f35505e4c0240678601eb9b709c7ffb' failed: Error in connection establishment: net::ERR_NETWORK_IO_SUSPENDED
Kernel.start_channels @ kernel.js:461