fix and add shim for change introduce by #4195

comm merging renamed object_info_request to object_info
This commit is contained in:
Matthias BUSSONNIER 2013-10-26 13:28:58 +02:00
parent 5bd89b7376
commit bdb1c94137
2 changed files with 7 additions and 4 deletions

View File

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

View File

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