One-click running of complete programs

77 views
Skip to first unread message

Bruce Sherwood

unread,
Jan 25, 2019, 4:55:59 PM1/25/19
to Project Jupyter
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

Thomas Porter

unread,
Mar 1, 2019, 2:05:31 PM3/1/19
to Project Jupyter
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

Vidar Tonaas Fauske

unread,
Mar 29, 2019, 11:20:53 AM3/29/19
to jup...@googlegroups.com
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

--
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 jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/52701f35-709f-4196-969a-c8b5c56b7dfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages