--
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+unsubscribe@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/9b9d0a4e-b5f9-44b6-8504-1918bea15590%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/3zAVHofQykg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+unsubscribe@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/CAOvn4qieyMy605EzC5C4f_tMLFGAU7OKm4gPc15EQ25J%2B0gWaw%40mail.gmail.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/3zAVHofQykg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+unsubscribe@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/890e47f5-dfb3-47fb-a373-af2dcd81ef60%40googlegroups.com.
%%javascriptrequire(["base/js/dialog"],function(dialog) {dialog.modal({title: 'Notebook halted!',body: 'This notebook is no longer running; the kernel has been halted. To continue working, restart the kernel.',buttons: {'Kernel restart': { function(){Jupyter.notebook.session.restart();} }}});});Jupyter.notebook.session.delete();
I believe I found the modal dialog:...however github linked API is missing.
Notebook Halt / Restart cell
When included at the bottom of a notebook, it will stop the notebook at the end of Run All, and pop up a modal dialog letting the user know that the notebook was auto-stopped at the end of the run. The dialog offers a "Kernel Restart" button which restarts the notebook.
%%javascript
require(
["base/js/dialog"],
function(dialog) {
dialog.modal({
title: 'Notebook Halted',
body: 'This notebook is no longer running; the kernel has been halted. Close the browser tab, or, to continue working, restart the kernel.',
buttons: {
'Kernel restart': { click: function(){ Jupyter.notebook.session.restart(); } }
}
});
}
);
Jupyter.notebook.session.delete();