diff --git a/IPython/frontend/html/notebook/static/js/kernel.js b/IPython/frontend/html/notebook/static/js/kernel.js
index 15e1709..1d74ac1 100644
--- a/IPython/frontend/html/notebook/static/js/kernel.js
+++ b/IPython/frontend/html/notebook/static/js/kernel.js
@@ -87,6 +87,34 @@ var IPython = (function (IPython) {
IPython.kernel_status_widget.status_idle();
};
+ Kernel.prototype._websocket_closed = function(ws_url, early){
+ var msg;
+ var parent_item = $('body');
+ if (early) {
+ msg = "Websocket connection to " + ws_url + " could not be established.
" +
+ " You will NOT be able to run code.
" +
+ " Your browser may not be compatible with the websocket version in the server," +
+ " 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."
+ }
+ var dialog = $('