There's an open issue (PR?) on JupyterLab about adding "Remember my choice" / "Do not ask again" checkboxes to dialogs. Once that goes in, the restart and run all action are a likely recipient :)
Vidar On Fri, Mar 1, 2019 at 8:05 PM Thomas Porter <[email protected]> wrote: > As a follow up request, I would like a way to run complete *.py files from > the editor. If there is one, I have not found it yet. > > Tom P > > On Friday, January 25, 2019 at 4:55:59 PM UTC-5, Bruce Sherwood wrote: >> >> 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/52701f35-709f-4196-969a-c8b5c56b7dfe%40googlegroups.com > <https://groups.google.com/d/msgid/jupyter/52701f35-709f-4196-969a-c8b5c56b7dfe%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CADZ1C%3DzaHrPh4CrhfK5jBT-ZK3NMiC4Q__e_ZDn%2ByCQfdCx_Zw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
