mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
fix and add shim for change introduce by #4195
comm merging renamed object_info_request to object_info
This commit is contained in:
parent
5bd89b7376
commit
bdb1c94137
@ -221,11 +221,9 @@ var IPython = (function (IPython) {
|
||||
};
|
||||
|
||||
Tooltip.prototype._request_tooltip = function (cell, line) {
|
||||
var callbacks = { shell : {
|
||||
reply : $.proxy(this._show, this)
|
||||
}};
|
||||
var callbacks = $.proxy(this._show, this);
|
||||
var oir_token = this.extract_oir_token(line);
|
||||
var msg_id = cell.kernel.object_info_request(oir_token, callbacks);
|
||||
var msg_id = cell.kernel.object_info(oir_token, callbacks);
|
||||
};
|
||||
|
||||
// make an imediate completion request
|
||||
|
@ -269,6 +269,11 @@ var IPython = (function (IPython) {
|
||||
return;
|
||||
};
|
||||
|
||||
Kernel.prototype.object_info_request = function(objname, callback){
|
||||
console.log('Warning object_info_request is deprecated, use object_info')
|
||||
return this.object_info(objname, callback.shell.reply)
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute given code into kernel, and pass result to callback.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user