Skip to content

Jupyter Lab idle/busy status is changed for every mouse movement in Jupyter Lab, overwhelming the server #144

@kboone

Description

@kboone

Version: jupyter-matplotlib 0.3.3 and JupyterLab version 1.1.4

In JupyterLab, whenever the mouse crosses over the canvas it sends a message to the server with the new coordinates every ~5 ms. For each message, the server responds with status update to busy message, a message to update the text, and a status update to idle message. It also updates the favicon, which seems to be causing more network requests (that are probably cached?) Needless to say, this completely overwhelms the server and leads to a lot of lag, even when running on a local machine.

There are two problems here: first, does it make sense to rate limit these update messages somehow?

Second, should there be some kind of timeout to prevent the kernel from flipping between busy/idle this fast? This might be something that needs to happen upstream in Jupyter Lab itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions