I don't know how general this need is, but I would SO like there to be a single-key short cut for the notebook and lab environments to restart, clear outputs, and run all cells, without interposing a scary dialog box requiring a response. Just hit F5 or some other key and start over.
In Jupyter notebook there are menu options Kernel > Restart & Clear Output and Kernel > Restart and Run All.
In Jupyterlab there are menu options Run > Restart Kernel and Run All Cells, Kernel > Restart Kernel and Run All Cells, and Kernel> Restart Kernel and Clear All Outputs.
All of these take one to a dialog box that warns you that all variables will be lost, and this intrusive behavior could be maintained for the menu options, but I would REALLY like having the option to just press a key and not be interrupted by a dialog box, something that is available in all other programming environments with which I'm familiar.
A related question: I see how to override a key binding in Jupyterlab, but a) there remains the issue of eliminating the intrusive dialog box and b) I don't see an example of how to bind a menu option to a function key such as F5.