add Reconnect to kernel menu

This commit is contained in:
Min RK 2014-11-06 16:00:29 -08:00
parent fe00509f32
commit 59b54eba53
2 changed files with 11 additions and 2 deletions

View File

@ -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 () {

View File

@ -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>