Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Reconnect Websocket when it closes unexpectedly #1752

Closed
wants to merge 2 commits into from

2 participants

@invisibleroads

This patch addresses issues #1751 and #1577.

@ellisonbg
Owner

I am going to close this because #1711 will make this much easier to fix without further coupling between the kernel and notebook objects.

@ellisonbg ellisonbg closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 21, 2012
  1. @invisibleroads
  2. @invisibleroads
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 2 deletions.
  1. +5 −2 IPython/frontend/html/notebook/static/js/kernel.js
View
7 IPython/frontend/html/notebook/static/js/kernel.js
@@ -96,8 +96,11 @@ var IPython = (function (IPython) {
" or if the url does not look right, there could be an error in the" +
" server's configuration.";
} else {
- msg = "Websocket connection closed unexpectedly." +
- " The kernel will no longer be responsive.";
+ this._handle_start_kernel({
+ ws_url: this.ws_url,
+ kernel_id: this.kernel_id
+ }, $.proxy(IPython.notebook.kernel_started, IPython.notebook));
+ return;
}
var dialog = $('<div/>');
dialog.html(msg);
Something went wrong with that request. Please try again.