Add extra checkbox giving the option to globally hide the dialog "Restart Kernel? ... All variables will be lost"
Author: LucaMarconatoCreated Sep 4, 2026Updated Sep 7, 2026
Labelsenhancementstatus:Needs Triage
Problem
Ticking the checkbox in "Restart Kernel? ... All variables will be lost" works, in my experience, only for the current env; the next time you recreate a Python environment the dialog will show up again.
I disabled it globally by adding
{
"skipKernelRestartDialog": true
}to ~/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/sessionDialogs.jupyterlab-settings.
Still, I find the dialog misleading.
Proposed Solution
- Modify the text in the dialog from "Do not ask me again." to "Do not ask me again, in the current Python environment." (or equivalent text).
- Ideally: add a new checkbox with the text "Do not ask me again, in any Python environment (current user)." (or equivalent text).
Source: jupyterlab/jupyterlab