Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] Shutdown all running kernels in one click #4421

Closed
stas00 opened this issue Feb 25, 2019 · 3 comments
Closed

[feature request] Shutdown all running kernels in one click #4421

stas00 opened this issue Feb 25, 2019 · 3 comments
Milestone

Comments

@stas00
Copy link

stas00 commented Feb 25, 2019

jupyter notebook's /tree#running tab allows selective shutdown of running kernels.

Would it be possible to add [Shutdown All] button?

  • I find that when restarting my browser with many opened tabs, it starts kernels in each of them. Even if I configure the browser not to reload on restart, switching to any tab will auto-start kernel. So I often end up clicking multiple times to shut them all, which is wasteful.

  • And there are times when I just have several gpu-consuming notebooks running intentionally and I want to clear my gpu quickly

A single button to rule them all would have been great. From the menu and/or from the /tree#running tab.

And I know I can restart jupyter to shut them all down at once, except it won't be the same, because:

  • chrome has to be restarted or otherwise nbs wouldn't work for 5 min
  • and also each nb tab gets a pop-up that the server has gone away
    so it's not good solution.

Thank you!

@owlas
Copy link

owlas commented Mar 24, 2020

I was going to post something similar, I think it fits here. One UX that gets me each time:

  • Open a few notebooks in a directory
  • Select all files (from the checkbox in top left)
  • "Shutdown" option doesn't appear
  • Deselect all files, select only active notebooks
  • "Shutdown" appears

It feels quite natural to me to select everything and shutdown whatever is running (like in an idempotent way). Was this by design? What's the reason?

@johnsamuelwrites
Copy link

Adding screenshot to explain this problem:

Header

image

Option to individually shutdown each kernel

image

It will be interesting to have a button to shutdown all the kernels in a click

@jtpio
Copy link
Member

jtpio commented Jun 24, 2023

For reference this feature is available in Notebook 7, which is currently in rc.

You can install it with: pip install --pre notebook.

notebook-7-shutdown-all.mp4

Closing as fixed, feel free re-open if you want to discuss this more. Thanks!

@jtpio jtpio closed this as completed Jun 24, 2023
@jtpio jtpio added this to the 7.0 milestone Jun 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants