jupyterlab / jupyterlab-desktop

JupyterLab desktop application, based on Electron.
BSD 3-Clause "New" or "Revised" License
3.75k stars 361 forks source link

High CPU usage after computer resumes from sleep with Jupyter Desktop running. #767

Open ashish-codebase opened 9 months ago

ashish-codebase commented 9 months ago

Description

When you run Jupyter desktop it runs file until the computer goes to sleep due to inactivity or by pressing the sleep button. Once the computer resumes normal power state, the Jupyter Lab Desktop version causes high CPU usage. If you look at the task manager several threads of Python.exe will be running with the path pointing to Jupyter Lab installation directory. It is not necessary to have anything running on Jupyter Lab. I have seen the same behavior on two machines (office & home PC).

Reproduce

  1. Run jupyter desktop normally (tested on windows 10 x64 Pro).
  2. Then let your computer go to sleep/standby automatically or by pressing sleep button.
  3. Then wake-up the computer.
  4. You will have very high CPU usages and there will be several Python.exe threads running.
  5. Tested this on 2 separate windows 10 x64 machines.

Expected behavior

Context

Troubleshoot Output
Paste the output from running `jupyter troubleshoot` from the terminal inside of JupyterLab Desktop here.
You may want to sanitize the paths in the output.
Browser Output (required for interface issues after loading)
Paste the output from the DevTools JavaScript console here, if applicable.

Logs (required for issues with loading, server and startup)
Paste the logs from the `main.log` file here (optionally also from `renderer.log`).

welcome[bot] commented 9 months ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada: