mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
add Reconnect to kernel menu
This commit is contained in:
parent
fe00509f32
commit
59b54eba53
@ -295,6 +295,9 @@ define([
|
||||
this.element.find('#restart_kernel').click(function () {
|
||||
that.notebook.restart_kernel();
|
||||
});
|
||||
this.element.find('#reconnect_kernel').click(function () {
|
||||
that.notebook.kernel.reconnect();
|
||||
});
|
||||
// Help
|
||||
if (this.tour) {
|
||||
this.element.find('#notebook_tour').click(function () {
|
||||
|
@ -230,10 +230,16 @@ class="notebook_app"
|
||||
<ul id="kernel_menu" class="dropdown-menu">
|
||||
<li id="int_kernel"
|
||||
title="Send KeyboardInterrupt (CTRL-C) to the Kernel">
|
||||
<a href="#">Interrupt</a></li>
|
||||
<a href="#">Interrupt</a>
|
||||
</li>
|
||||
<li id="restart_kernel"
|
||||
title="Restart the Kernel">
|
||||
<a href="#">Restart</a></li>
|
||||
<a href="#">Restart</a>
|
||||
</li>
|
||||
<li id="reconnect_kernel"
|
||||
title="Reconnect to the Kernel">
|
||||
<a href="#">Reconnect</a>
|
||||
</li>
|
||||
<li class="divider"></li>
|
||||
<li id="menu-change-kernel" class="dropdown-submenu">
|
||||
<a href="#">Change kernel</a>
|
||||
|
Loading…
Reference in New Issue
Block a user