Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

kill notebook its self when server cull idle kernel (new fix)#5593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Zsailer merged 1 commit intojupyter:masterfromlevinxo:master
Jul 23, 2020
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
kill notebook its self when server cull idle kernel
  • Loading branch information
@levinxo
levinxo committedJul 9, 2020
commitedc261c0f7f7ec3395e941dd027ea73b6bde32b5
14 changes: 14 additions & 0 deletionsnotebook/static/services/kernels/kernel.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -141,6 +141,7 @@ define([
this.register_iopub_handler('status', $.proxy(this._handle_status_message, this));
this.register_iopub_handler('clear_output', $.proxy(this._handle_clear_output, this));
this.register_iopub_handler('execute_input', $.proxy(this._handle_input_message, this));
this.register_iopub_handler('shutdown_reply', $.proxy(this._handle_shutdown_message, this));

for (var i=0; i < output_msg_types.length; i++) {
this.register_iopub_handler(output_msg_types[i], $.proxy(this._handle_output_message, this));
Expand DownExpand Up@@ -1212,6 +1213,19 @@ define([
}
};


/**
* Handle a kernel shutdown message
* @function _handle_shutdown_message
*/
Kernel.prototype._handle_shutdown_message = function (msg) {
if (!msg.content.restart) {
this.events.trigger('kernel_dead.Kernel', {kernel: this});
this._kernel_dead();
}
}


/**
* Dispatch IOPub messages to respective handlers. Each message
* type should have a handler.
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp