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. Bruce -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/8ca7fde0-2d7f-48e9-a7a1-d74c3ddefff1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
